vulkan: Workaround for NVidia driver bug when compiled with new DXC (#1111)

This commit is contained in:
Dennis Brakhane
2025-05-31 07:36:55 +02:00
committed by GitHub
parent 1be929aa8a
commit 71f783eae6
@@ -97,9 +97,12 @@ PixelInput main(ConstantOutput input, float3 uvw : SV_DomainLocation, const Outp
{
PixelInput output = patch[0];
const float u = uvw.x;
const float v = uvw.y;
const float w = uvw.z;
// workaround for NVidia driver bug
const float3 uvwCopy = 1 * uvw;
const float u = uvwCopy.x;
const float v = uvwCopy.y;
const float w = uvwCopy.z;
const float uu = u * u;
const float vv = v * v;
const float ww = w * w;