Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

unrecognized identifier 'fixed4' in Compute Shader

$
0
0
I'm trying to make a compute shader that uses Lighting.cginc, but it always fails because fixed4 (and fixed in general) is not a recognized variable type. Shader error in 'RaymarchComputeShaderV2.compute': unrecognized identifier 'fixed4' at kernel CSMain at UnityLightingCommon.cginc(4) (on d3d11) Commenting out `#include "Lighting.cginc"` and instead adding `static fixed testing = 0` gives a similar error. Shader error in 'RaymarchComputeShaderV2.compute': unrecognized identifier 'fixed' at kernel CSMain at RaymarchComputeShaderV2.compute(9) (on d3d11) Why doesn't the fixed variable type work for me? I am running 2019.3.0a10

Viewing all articles
Browse latest Browse all 287

Trending Articles