Search Issue Tracker

Fixed in 2019.1.X

Votes

2

Found in

5.6.0p4

Issue ID

923897

Regression

No

InstanceID is not transferred from vertex to domain shader

Shaders

-

Steps to reproduce:
1. Open attached Unity Project "923897-TesselationShader.zip"
2. Load Scene "Tesselation x Instancing"
3. Option 1: Select Material "FixedTesselation" and enable "Enable Instancing" in the Inspector
4. Option 2: Select "Instanced Cube" GameObject in the Hierachy and enable it.

Note: the user is using a shader script (modified to support instancing) described in Unity documentation, can be found here:
https://docs.unity3d.com/Manual/SL-SurfaceShaderTessellation.html

Expected result: The instanced object and its material will be displayed correctly
Actual result: Error "Shader error in 'Tessellation Sample': 'disp': output parameter 'v' not completely initialized at line 37 (on d3d11)" is displayed and the material does not work

Reproducible with: 5.5.4p1, 5.6.0p4, 5.6.1f1, 5.6.1p2, 5.6.2p1, 2017.1.0b1, 2017.1.0b10

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.