Implement the extension GL_EXT_spirv_intrinsics
- Add support of SPIR-V execution mode qualifiers. - Add support of SPIR-V storage class qualifier. - Add support of SPIR-V decorate qualifiers. - Add support of SPIR-V type specifier. - Add support of SPIR-V intruction qualifiers. - Add support of spirv_by_reference/spirv_literal parameter qualifier. - Add shader stage macros introduced by this extension.
This commit is contained in:
parent
3d935ea224
commit
65a7fb7054
40 changed files with 7337 additions and 3967 deletions
17
Test/spv.intrinsicsSpirvLiteral.vert
Normal file
17
Test/spv.intrinsicsSpirvLiteral.vert
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#version 450 core
|
||||
|
||||
#extension GL_EXT_spirv_intrinsics: enable
|
||||
|
||||
spirv_instruction(id = 61)
|
||||
vec4 load(spirv_by_reference vec4 pointer, spirv_literal int memoryOperands);
|
||||
|
||||
spirv_instruction(id = 62)
|
||||
void store(spirv_by_reference vec4 pointer, vec4 object, spirv_literal int memoryOperands);
|
||||
|
||||
layout(location = 0) in vec4 vec4In;
|
||||
layout(location = 1) out vec4 vec4Out;
|
||||
|
||||
void main()
|
||||
{
|
||||
store(vec4Out, load(vec4In, /*None=*/0x0), /*Volatile=*/0x1);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue