Fix some tests and do some cleanup.
This commit is contained in:
14
test/parse/constant_buffer.golden
Normal file
14
test/parse/constant_buffer.golden
Normal file
@@ -0,0 +1,14 @@
|
||||
(program
|
||||
(constant_buffer camera
|
||||
[(:= projection float4x4)
|
||||
(:= view float4x4)])
|
||||
|
||||
(fun vertex vs_main -> float4 (@position)
|
||||
[(:= pos float4 (@position))]
|
||||
(:= mv float4 (mul camera.view pos))
|
||||
(:= mvp float4 (mul camera.projection mv))
|
||||
(return mvp))
|
||||
|
||||
(fun pixel ps_main -> float4 (@target)
|
||||
[]
|
||||
(return (float4 0.5 0.5 0.5 1))))
|
||||
@@ -1,4 +1,4 @@
|
||||
[1;37mtest/field_without_type_specifier.shd:2,0: [31merror: [37mExpected type specifier after field name.
|
||||
[1;37mtest/field_without_type_specifier.inx:2,0: [31merror: [37mExpected type specifier after field name.
|
||||
[96mx := 5.0;
|
||||
^
|
||||
[36m[37m
|
||||
11
test/parse/property_rename.golden
Normal file
11
test/parse/property_rename.golden
Normal file
@@ -0,0 +1,11 @@
|
||||
(program
|
||||
(properties props
|
||||
[(:= color float4)])
|
||||
|
||||
(fun vertex vs_main -> float4 (@position)
|
||||
[(:= pos float4 (@position))]
|
||||
(return pos))
|
||||
|
||||
(fun pixel ps_main -> float4 (@target0)
|
||||
[]
|
||||
(return props.color)))
|
||||
Reference in New Issue
Block a user