vulkan: Workaround for NVidia driver bug when compiled with new DXC (#1111)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user