WIP: HLSL: propagate readonly qualifier for buffer types

This commit is contained in:
steve-lunarg
2017-03-19 12:40:12 -06:00
parent cf2e7275e8
commit d3947d232a
6 changed files with 56 additions and 42 deletions

View File

@@ -10,7 +10,7 @@ gl_FragCoord origin is upper left
0:28 'r00' ( temp float)
0:28 Construct float ( temp float)
0:? imageLoad ( temp 4-component vector of float)
0:28 'g_tTexbfs' (layout( r32f) uniform imageBuffer)
0:28 'g_tTexbfs' (layout( r32f) readonly uniform imageBuffer)
0:28 c1: direct index for structure (layout( offset=0) uniform int)
0:28 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int c1, layout( offset=8) uniform 2-component vector of int c2, layout( offset=16) uniform 3-component vector of int c3, layout( offset=32) uniform 4-component vector of int c4, layout( offset=48) uniform int o1, layout( offset=56) uniform 2-component vector of int o2, layout( offset=64) uniform 3-component vector of int o3, layout( offset=80) uniform 4-component vector of int o4})
0:28 Constant:
@@ -20,7 +20,7 @@ gl_FragCoord origin is upper left
0:29 'r01' ( temp int)
0:29 Construct int ( temp int)
0:? imageLoad ( temp 4-component vector of int)
0:29 'g_tTexbis' (layout( r32i) uniform iimageBuffer)
0:29 'g_tTexbis' (layout( r32i) readonly uniform iimageBuffer)
0:29 c1: direct index for structure (layout( offset=0) uniform int)
0:29 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int c1, layout( offset=8) uniform 2-component vector of int c2, layout( offset=16) uniform 3-component vector of int c3, layout( offset=32) uniform 4-component vector of int c4, layout( offset=48) uniform int o1, layout( offset=56) uniform 2-component vector of int o2, layout( offset=64) uniform 3-component vector of int o3, layout( offset=80) uniform 4-component vector of int o4})
0:29 Constant:
@@ -30,7 +30,7 @@ gl_FragCoord origin is upper left
0:30 'r02' ( temp uint)
0:30 Construct uint ( temp uint)
0:? imageLoad ( temp 4-component vector of uint)
0:30 'g_tTexbus' (layout( r32ui) uniform uimageBuffer)
0:30 'g_tTexbus' (layout( r32ui) readonly uniform uimageBuffer)
0:30 c1: direct index for structure (layout( offset=0) uniform int)
0:30 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int c1, layout( offset=8) uniform 2-component vector of int c2, layout( offset=16) uniform 3-component vector of int c3, layout( offset=32) uniform 4-component vector of int c4, layout( offset=48) uniform int o1, layout( offset=56) uniform 2-component vector of int o2, layout( offset=64) uniform 3-component vector of int o3, layout( offset=80) uniform 4-component vector of int o4})
0:30 Constant:
@@ -74,10 +74,10 @@ gl_FragCoord origin is upper left
0:24 Constant:
0:24 1 (const int)
0:? Linker Objects
0:? 'g_tTexbfs_test' (layout( binding=0 r32f) uniform imageBuffer)
0:? 'g_tTexbfs' (layout( r32f) uniform imageBuffer)
0:? 'g_tTexbis' (layout( r32i) uniform iimageBuffer)
0:? 'g_tTexbus' (layout( r32ui) uniform uimageBuffer)
0:? 'g_tTexbfs_test' (layout( binding=0 r32f) readonly uniform imageBuffer)
0:? 'g_tTexbfs' (layout( r32f) readonly uniform imageBuffer)
0:? 'g_tTexbis' (layout( r32i) readonly uniform iimageBuffer)
0:? 'g_tTexbus' (layout( r32ui) readonly uniform uimageBuffer)
0:? 'Color' (layout( location=0) out 4-component vector of float)
0:? 'Depth' ( out float FragDepth)
0:? 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int c1, layout( offset=8) uniform 2-component vector of int c2, layout( offset=16) uniform 3-component vector of int c3, layout( offset=32) uniform 4-component vector of int c4, layout( offset=48) uniform int o1, layout( offset=56) uniform 2-component vector of int o2, layout( offset=64) uniform 3-component vector of int o3, layout( offset=80) uniform 4-component vector of int o4})
@@ -97,7 +97,7 @@ gl_FragCoord origin is upper left
0:28 'r00' ( temp float)
0:28 Construct float ( temp float)
0:? imageLoad ( temp 4-component vector of float)
0:28 'g_tTexbfs' (layout( r32f) uniform imageBuffer)
0:28 'g_tTexbfs' (layout( r32f) readonly uniform imageBuffer)
0:28 c1: direct index for structure (layout( offset=0) uniform int)
0:28 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int c1, layout( offset=8) uniform 2-component vector of int c2, layout( offset=16) uniform 3-component vector of int c3, layout( offset=32) uniform 4-component vector of int c4, layout( offset=48) uniform int o1, layout( offset=56) uniform 2-component vector of int o2, layout( offset=64) uniform 3-component vector of int o3, layout( offset=80) uniform 4-component vector of int o4})
0:28 Constant:
@@ -107,7 +107,7 @@ gl_FragCoord origin is upper left
0:29 'r01' ( temp int)
0:29 Construct int ( temp int)
0:? imageLoad ( temp 4-component vector of int)
0:29 'g_tTexbis' (layout( r32i) uniform iimageBuffer)
0:29 'g_tTexbis' (layout( r32i) readonly uniform iimageBuffer)
0:29 c1: direct index for structure (layout( offset=0) uniform int)
0:29 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int c1, layout( offset=8) uniform 2-component vector of int c2, layout( offset=16) uniform 3-component vector of int c3, layout( offset=32) uniform 4-component vector of int c4, layout( offset=48) uniform int o1, layout( offset=56) uniform 2-component vector of int o2, layout( offset=64) uniform 3-component vector of int o3, layout( offset=80) uniform 4-component vector of int o4})
0:29 Constant:
@@ -117,7 +117,7 @@ gl_FragCoord origin is upper left
0:30 'r02' ( temp uint)
0:30 Construct uint ( temp uint)
0:? imageLoad ( temp 4-component vector of uint)
0:30 'g_tTexbus' (layout( r32ui) uniform uimageBuffer)
0:30 'g_tTexbus' (layout( r32ui) readonly uniform uimageBuffer)
0:30 c1: direct index for structure (layout( offset=0) uniform int)
0:30 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int c1, layout( offset=8) uniform 2-component vector of int c2, layout( offset=16) uniform 3-component vector of int c3, layout( offset=32) uniform 4-component vector of int c4, layout( offset=48) uniform int o1, layout( offset=56) uniform 2-component vector of int o2, layout( offset=64) uniform 3-component vector of int o3, layout( offset=80) uniform 4-component vector of int o4})
0:30 Constant:
@@ -161,10 +161,10 @@ gl_FragCoord origin is upper left
0:24 Constant:
0:24 1 (const int)
0:? Linker Objects
0:? 'g_tTexbfs_test' (layout( binding=0 r32f) uniform imageBuffer)
0:? 'g_tTexbfs' (layout( r32f) uniform imageBuffer)
0:? 'g_tTexbis' (layout( r32i) uniform iimageBuffer)
0:? 'g_tTexbus' (layout( r32ui) uniform uimageBuffer)
0:? 'g_tTexbfs_test' (layout( binding=0 r32f) readonly uniform imageBuffer)
0:? 'g_tTexbfs' (layout( r32f) readonly uniform imageBuffer)
0:? 'g_tTexbis' (layout( r32i) readonly uniform iimageBuffer)
0:? 'g_tTexbus' (layout( r32ui) readonly uniform uimageBuffer)
0:? 'Color' (layout( location=0) out 4-component vector of float)
0:? 'Depth' ( out float FragDepth)
0:? 'anon@0' (layout( row_major std140) uniform block{layout( offset=0) uniform int c1, layout( offset=8) uniform 2-component vector of int c2, layout( offset=16) uniform 3-component vector of int c3, layout( offset=32) uniform 4-component vector of int c4, layout( offset=48) uniform int o1, layout( offset=56) uniform 2-component vector of int o2, layout( offset=64) uniform 3-component vector of int o3, layout( offset=80) uniform 4-component vector of int o4})
@@ -206,6 +206,7 @@ gl_FragCoord origin is upper left
Name 71 "Depth"
Name 74 "g_tTexbfs_test"
Decorate 16(g_tTexbfs) DescriptorSet 0
Decorate 16(g_tTexbfs) NonWritable
MemberDecorate 22($Global) 0 Offset 0
MemberDecorate 22($Global) 1 Offset 8
MemberDecorate 22($Global) 2 Offset 16
@@ -217,11 +218,14 @@ gl_FragCoord origin is upper left
Decorate 22($Global) Block
Decorate 24 DescriptorSet 0
Decorate 35(g_tTexbis) DescriptorSet 0
Decorate 35(g_tTexbis) NonWritable
Decorate 46(g_tTexbus) DescriptorSet 0
Decorate 46(g_tTexbus) NonWritable
Decorate 67(Color) Location 0
Decorate 71(Depth) BuiltIn FragDepth
Decorate 74(g_tTexbfs_test) DescriptorSet 0
Decorate 74(g_tTexbfs_test) Binding 0
Decorate 74(g_tTexbfs_test) NonWritable
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32