Add GLSL_EXT_shader_tile_image
This commit is contained in:
parent
a3310b7cff
commit
0bbec2e8f6
33 changed files with 5712 additions and 5083 deletions
|
|
@ -1,7 +1,7 @@
|
|||
440.frag
|
||||
ERROR: 0:11: 'location' : overlapping use of location 4
|
||||
ERROR: 0:13: 'component' : type overflows the available 4 components
|
||||
ERROR: 0:22: 'location' : fragment outputs sharing the same location must be the same basic type 30
|
||||
ERROR: 0:22: 'location' : fragment outputs or tileImageEXTs sharing the same location 30 must be the same basic type
|
||||
ERROR: 0:24: 'qualifier' : cannot use auxiliary, memory, interpolation, or precision qualifier in a default qualifier declaration (declaration with no type)
|
||||
ERROR: 0:25: 'qualifier' : cannot use auxiliary, memory, interpolation, or precision qualifier in a default qualifier declaration (declaration with no type)
|
||||
ERROR: 0:26: 'qualifier' : cannot use auxiliary, memory, interpolation, or precision qualifier in a default qualifier declaration (declaration with no type)
|
||||
|
|
|
|||
38
Test/baseResults/spv.ext.ShaderTileImage.color.frag.out
Normal file
38
Test/baseResults/spv.ext.ShaderTileImage.color.frag.out
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
spv.ext.ShaderTileImage.color.frag
|
||||
WARNING: 0:6: '' : all default precisions are highp; use precision statements to quiet warning, e.g.:
|
||||
"precision mediump int; precision highp float;"
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 8000b
|
||||
// Id's are bound by 15
|
||||
|
||||
Capability Shader
|
||||
Capability TileImageColorReadAccessEXT
|
||||
Extension "SPV_EXT_shader_tile_image"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 9
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_EXT_shader_tile_image"
|
||||
Name 4 "main"
|
||||
Name 9 "out_color"
|
||||
Name 12 "in_color"
|
||||
Decorate 9(out_color) Location 0
|
||||
Decorate 12(in_color) Location 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypeVector 6(float) 4
|
||||
8: TypePointer Output 7(fvec4)
|
||||
9(out_color): 8(ptr) Variable Output
|
||||
10: TypeImage 6(float) TileImageDataEXT nonsampled format:Unknown
|
||||
11: TypePointer TileImageEXT 10
|
||||
12(in_color): 11(ptr) Variable TileImageEXT
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
13: 10 Load 12(in_color)
|
||||
14: 7(fvec4) ColorAttachmentReadEXT 13
|
||||
Store 9(out_color) 14
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
spv.ext.ShaderTileImage.depth_stencil.frag
|
||||
WARNING: 0:6: '' : all default precisions are highp; use precision statements to quiet warning, e.g.:
|
||||
"precision mediump int; precision highp float;"
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 8000b
|
||||
// Id's are bound by 26
|
||||
|
||||
Capability Shader
|
||||
Capability TileImageDepthReadAccessEXT
|
||||
Capability TileImageStencilReadAccessEXT
|
||||
Extension "SPV_EXT_shader_tile_image"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 16 22
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_EXT_shader_tile_image"
|
||||
Name 4 "main"
|
||||
Name 8 "depth"
|
||||
Name 12 "stencil_value"
|
||||
Name 16 "stencil_out"
|
||||
Name 22 "depth_out"
|
||||
Decorate 13 RelaxedPrecision
|
||||
Decorate 16(stencil_out) Location 0
|
||||
Decorate 22(depth_out) Location 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypePointer Function 6(float)
|
||||
10: TypeInt 32 0
|
||||
11: TypePointer Function 10(int)
|
||||
14: TypeVector 10(int) 4
|
||||
15: TypePointer Output 14(ivec4)
|
||||
16(stencil_out): 15(ptr) Variable Output
|
||||
18: 10(int) Constant 0
|
||||
20: TypeVector 6(float) 4
|
||||
21: TypePointer Output 20(fvec4)
|
||||
22(depth_out): 21(ptr) Variable Output
|
||||
24: 6(float) Constant 0
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(depth): 7(ptr) Variable Function
|
||||
12(stencil_value): 11(ptr) Variable Function
|
||||
9: 6(float) DepthAttachmentReadEXT
|
||||
Store 8(depth) 9
|
||||
13: 10(int) StencilAttachmentReadEXT
|
||||
Store 12(stencil_value) 13
|
||||
17: 10(int) Load 12(stencil_value)
|
||||
19: 14(ivec4) CompositeConstruct 17 18 18 18
|
||||
Store 16(stencil_out) 19
|
||||
23: 6(float) Load 8(depth)
|
||||
25: 20(fvec4) CompositeConstruct 23 24 24 24
|
||||
Store 22(depth_out) 25
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
spv.ext.ShaderTileImage.overlap.frag
|
||||
ERROR: 0:8: 'location' : overlapping use of location 1
|
||||
ERROR: 1 compilation errors. No code generated.
|
||||
|
||||
|
||||
SPIR-V is not generated for failed compile or link
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
spv.ext.ShaderTileImage.subpassinput.frag
|
||||
ERROR: 0:6: 'subpassInput' : can not be used with GL_EXT_shader_tile_image enabled
|
||||
ERROR: 1 compilation errors. No code generated.
|
||||
|
||||
|
||||
SPIR-V is not generated for failed compile or link
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
spv.ext.ShaderTileImage.typemismatch.frag
|
||||
ERROR: 0:7: 'location' : fragment outputs or tileImageEXTs sharing the same location 0 must be the same basic type
|
||||
ERROR: 1 compilation errors. No code generated.
|
||||
|
||||
|
||||
SPIR-V is not generated for failed compile or link
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
spv.ext.ShaderTileImage.wronglayout.frag
|
||||
ERROR: 0:7: 'binding' : requires uniform or buffer storage qualifier
|
||||
ERROR: 0:7: 'set' : cannot be used with tileImageEXT
|
||||
ERROR: 0:7: 'tileImageEXT' : can only be used with an explicit location
|
||||
ERROR: 0:7: 'input_attachment_index' : can only be used with a subpass
|
||||
ERROR: 4 compilation errors. No code generated.
|
||||
|
||||
|
||||
SPIR-V is not generated for failed compile or link
|
||||
12
Test/spv.ext.ShaderTileImage.color.frag
Normal file
12
Test/spv.ext.ShaderTileImage.color.frag
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 460
|
||||
#extension GL_EXT_shader_tile_image : require
|
||||
|
||||
precision highp float;
|
||||
|
||||
layout(location=1) tileImageEXT highp attachmentEXT in_color;
|
||||
layout(location=0) out highp vec4 out_color;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
out_color = colorAttachmentReadEXT(in_color);
|
||||
}
|
||||
16
Test/spv.ext.ShaderTileImage.depth_stencil.frag
Normal file
16
Test/spv.ext.ShaderTileImage.depth_stencil.frag
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#version 460
|
||||
#extension GL_EXT_shader_tile_image : require
|
||||
|
||||
precision highp float;
|
||||
|
||||
layout(location=0) out highp uvec4 stencil_out;
|
||||
layout(location=1) out highp vec4 depth_out;
|
||||
|
||||
|
||||
void main(void)
|
||||
{
|
||||
float depth = depthAttachmentReadEXT();
|
||||
uint stencil_value = stencilAttachmentReadEXT();
|
||||
stencil_out = uvec4(stencil_value,0,0,0);
|
||||
depth_out = vec4(depth,0.0,0.0,0.0);
|
||||
}
|
||||
15
Test/spv.ext.ShaderTileImage.overlap.frag
Normal file
15
Test/spv.ext.ShaderTileImage.overlap.frag
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#version 460
|
||||
#extension GL_EXT_shader_tile_image : require
|
||||
|
||||
precision mediump int;
|
||||
precision highp float;
|
||||
|
||||
layout(location=0) tileImageEXT highp attachmentEXT in_color[2];
|
||||
layout(location=1) tileImageEXT highp attachmentEXT in_color_1;
|
||||
layout(location=1) out highp vec4 out_color;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
out_color = colorAttachmentReadEXT(in_color[0]);
|
||||
out_color += colorAttachmentReadEXT(in_color_1);
|
||||
}
|
||||
13
Test/spv.ext.ShaderTileImage.subpassinput.frag
Normal file
13
Test/spv.ext.ShaderTileImage.subpassinput.frag
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#version 450
|
||||
#extension GL_EXT_shader_tile_image : require
|
||||
|
||||
precision highp float;
|
||||
|
||||
layout(set = 0, binding = 0, input_attachment_index = 0) uniform subpassInput i;
|
||||
|
||||
layout(location = 0) out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragColor = subpassLoad(i);
|
||||
}
|
||||
13
Test/spv.ext.ShaderTileImage.typemismatch.frag
Normal file
13
Test/spv.ext.ShaderTileImage.typemismatch.frag
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#version 320 es
|
||||
#extension GL_EXT_shader_tile_image : require
|
||||
|
||||
layout(non_coherent_color_attachment_readEXT) in;
|
||||
|
||||
layout(location=0) tileImageEXT highp iattachmentEXT in_color_i;
|
||||
layout(location=0) out highp vec4 out_color_f;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
highp ivec4 read = colorAttachmentReadEXT(in_color_i);
|
||||
out_color_f = vec4(read);
|
||||
}
|
||||
13
Test/spv.ext.ShaderTileImage.wronglayout.frag
Normal file
13
Test/spv.ext.ShaderTileImage.wronglayout.frag
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#version 460
|
||||
#extension GL_EXT_shader_tile_image : require
|
||||
|
||||
precision highp float;
|
||||
precision mediump int;
|
||||
|
||||
layout(binding=0, set=0, input_attachment_index=0) tileImageEXT highp attachmentEXT in_color;
|
||||
layout(location=0) out highp vec4 out_color;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
out_color = colorAttachmentReadEXT(in_color);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue