Skip to content

Commit 71f783e

Browse files
authored
vulkan: Workaround for NVidia driver bug when compiled with new DXC (#1111)
1 parent 1be929a commit 71f783e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

WickedEngine/shaders/objectHF_tessellation.hlsli

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,12 @@ PixelInput main(ConstantOutput input, float3 uvw : SV_DomainLocation, const Outp
9797
{
9898
PixelInput output = patch[0];
9999

100-
const float u = uvw.x;
101-
const float v = uvw.y;
102-
const float w = uvw.z;
100+
// workaround for NVidia driver bug
101+
const float3 uvwCopy = 1 * uvw;
102+
103+
const float u = uvwCopy.x;
104+
const float v = uvwCopy.y;
105+
const float w = uvwCopy.z;
103106
const float uu = u * u;
104107
const float vv = v * v;
105108
const float ww = w * w;

0 commit comments

Comments
 (0)