HLSL: support binary literals

Fixes #3089
This commit is contained in:
Dawid-Lorenz-Mobica
2023-07-18 17:35:36 +02:00
committed by GitHub
parent 9e41635d74
commit d5f3ad6c9a
10 changed files with 745 additions and 252 deletions

View File

@@ -0,0 +1,15 @@
struct PS_OUTPUT { float4 color : SV_Target0; };
PS_OUTPUT main()
{
// Test numeric suffixes
uint r01 = 0bERROR321u; // Bad digit
uint r02 = 0b11111111111111111111111111111111111111111111111111111111111111111u; // To big
uint r03 = 0xTESTu // Bad digit
uint r04 = 0xFFFFFFFFFFFFFFFFFFu; // To big
PS_OUTPUT ps_output;
ps_output.color = r01;
return ps_output;
}