repo.or.cz
/
glslang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bump github/codeql-action from 3.27.1 to 3.27.4
[glslang.git]
/
Test
/
spv.specConstantOp.int16.comp
blob
c5078436c72604136a4ffa864fba13716dcd2807
1
#version 450
2
#extension GL_EXT_shader_explicit_arithmetic_types_int16 : require
3
4
// Produce an OpSpecConstantOp with 16 bit integer type
5
6
layout(constant_id = 0) const int c = 8;
7
8
layout(binding=0) writeonly restrict buffer S {
9
uint16_t p_out[];
10
};
11
12
void main()
13
{
14
p_out[0] = uint16_t(c);
15
}
16