parent
78a3c915a1
commit
232ba0d848
8 changed files with 222 additions and 0 deletions
18
Test/spv.specConstant.int8.comp
Normal file
18
Test/spv.specConstant.int8.comp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#version 450
|
||||
#extension GL_EXT_shader_explicit_arithmetic_types_int8 : require
|
||||
|
||||
layout(constant_id = 1) const int8_t sc0 = int8_t(127);
|
||||
layout(constant_id = 2) const int8_t sc1 = int8_t(-127);
|
||||
|
||||
layout (set = 0, binding = 0, std430) writeonly buffer Output {
|
||||
int8_t r0;
|
||||
int8_t r1;
|
||||
} sb_out;
|
||||
|
||||
|
||||
void main (void)
|
||||
{
|
||||
sb_out.r0 = sc0;
|
||||
sb_out.r1 = sc1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue