HLSL: Add bounds checking, shared with GLSL. Partially address #1032.
This commit is contained in:
parent
346dd7c747
commit
bdbbc68e29
7 changed files with 39 additions and 40 deletions
|
|
@ -21,6 +21,6 @@ float4 main() : SV_Target0
|
|||
if (cb3[1][2].x)
|
||||
return cb1.x + cb2[1].y + c1;
|
||||
else
|
||||
return cb3[2][3].y;
|
||||
return cb3[1][3].y;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue