babysitting AMD driver

This commit is contained in:
Turanszki Janos
2024-08-01 12:07:45 +02:00
parent 38de5e282f
commit 631ebdfb1b
+9 -3
View File
@@ -204,10 +204,16 @@ struct VertexInput
half GetWetmap()
{
//[branch]
//if (GetInstance().vb_wetmap < 0)
// return 0;
//return (half)bindless_buffers_float[NonUniformResourceIndex(GetInstance().vb_wetmap)][vertexID];
// There is something seriously bad with AMD driver's shader compiler as the above commented version works incorrectly and this works correctly but only for wetmap
[branch]
if (GetInstance().vb_wetmap < 0)
return 0;
return (half)bindless_buffers_float[GetInstance().vb_wetmap][vertexID];
if (GetInstance().vb_wetmap >= 0)
return (half)bindless_buffers_float[GetInstance().vb_wetmap][vertexID];
return 0;
}
};