Shader error 'LoadDOTSInstancedData_float3': no matching 2 parameter function

Hi,

I’ve set a custom property to Hybrid per Instance, but I get these compiler errors:

Shader error in 'Master': 'LoadDOTSInstancedData_float3': no matching 2 parameter function at line 1021 (on d3d11)
Shader error in 'Master': undeclared identifier 'unity_DOTSInstancingF12_Metadata_Emission' at line 1021 (on d3d11)

The shader is very simple, just an Emission property linked to Emission.

The issue seems to be simply that the graph precision is set to “half” and not “single”. Is this a known issue? I didn’t find anything about it in the documentation.

Ever find anything on this? Same issue for me in 2022.2.19.

If your property is declared as a float3, I would suggest trying to declare it as a float4 instead. The “F12” (short for float, 12 bytes) seems to suggest it’s a float3, which is a less tested path so there could be a bug.

I get the exact same with LoadDOTSInstancedData_float4. So something is broken. Has been for ages now. I’ll add it to the list of things that make unity completely unusable (along with editor crashes ever 2 mins on macOS).

If you can file a bug with a repro project, we can take a look at why the shader is not compiling and fix the bug.

1 Like

I fixed this by changing the ShaderGraph overall and by parameter precision from half to single!