gorrila007

Results 3 comments of gorrila007

Texture2D Tex; float4 LoadTex(int3 pos, int2 offset) { // Ensure offset is a constant expression int2 fixedOffset = (int2)0; // Replace (int2)0 with a constant expression if needed return Tex.Load(pos,...

RWStructuredBuffer Out; [numthreads(1, 1, 1)] void main(uint id : SV_DispatchThreadID) { float value = Out[id]; bool bar = isnan(value); // Check if 'value' is NaN Out[id] = bar ? 1.0f...

RWStructuredBuffer Out; [numthreads(1, 1, 1)] void main() { Out[0] = asuint(-1); // Ensure correct handling of -1 }