More fixes to access and buffer compilation.
This commit is contained in:
5
test/parse/arithmetic_parens.golden
Normal file
5
test/parse/arithmetic_parens.golden
Normal file
@@ -0,0 +1,5 @@
|
||||
(program
|
||||
(fun vertex vs_main
|
||||
[]
|
||||
(:= v float2)
|
||||
(= v.x (* (+ 2 (* (- 4 2) 1.5)) 3))))
|
||||
8
test/parse/bad_double_access.golden
Normal file
8
test/parse/bad_double_access.golden
Normal file
@@ -0,0 +1,8 @@
|
||||
(program
|
||||
(struct P
|
||||
[(:= v float2)])
|
||||
|
||||
(fun vertex vs_main
|
||||
[]
|
||||
(:= p P)
|
||||
(= p.v.x.y 2)))
|
||||
10
test/parse/buffers.golden
Normal file
10
test/parse/buffers.golden
Normal file
@@ -0,0 +1,10 @@
|
||||
(program
|
||||
(buffer property_buffer
|
||||
[(:= color float4)])
|
||||
|
||||
(constant_buffer cbuffer
|
||||
[(:= color float4)])
|
||||
|
||||
(fun pixel ps_main
|
||||
[(:= index int)]
|
||||
(return property_buffer[index].color)))
|
||||
7
test/parse/double_access.golden
Normal file
7
test/parse/double_access.golden
Normal file
@@ -0,0 +1,7 @@
|
||||
(program
|
||||
(constant_buffer p
|
||||
[(:= v float2)])
|
||||
|
||||
(fun vertex vs_main
|
||||
[]
|
||||
(:= x float (/ p.v.x p.v.y))))
|
||||
Reference in New Issue
Block a user