mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Don't produce a parse error on empty buffer_body.
This commit is contained in:
committed by
Alexandre Julliard
parent
f100f5b726
commit
bd501ce336
Notes:
Alexandre Julliard
2022-11-18 22:42:34 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/48
17
tests/cbuffer.shader_test
Normal file
17
tests/cbuffer.shader_test
Normal file
@@ -0,0 +1,17 @@
|
||||
[pixel shader]
|
||||
// Test empty constant buffer.
|
||||
cbuffer Constants : register(b1)
|
||||
{
|
||||
};
|
||||
|
||||
float4 foo;
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return foo;
|
||||
}
|
||||
|
||||
[test]
|
||||
uniform 0 float4 1.0 2.0 3.0 4.0
|
||||
draw quad
|
||||
probe all rgba (1.0, 2.0, 3.0, 4.0)
|
Reference in New Issue
Block a user