Skip to content

Commit

Permalink
shady.h: added global addrspace and globalinvocationid builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugobros3 committed Jan 18, 2024
1 parent c2c4720 commit 55d206d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vcc-std/include/shady.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace vcc {
#define output __attribute__((address_space(390)))
#define uniform __attribute__((annotate("shady::uniform")))
#define push_constant __attribute__((address_space(392)))
#define global __attribute__((address_space(1)))
#define private __attribute__((address_space(5)))
#define private_logical __attribute__((address_space(385)))

Expand Down Expand Up @@ -60,6 +61,10 @@ __attribute__((annotate("shady::builtin::WorkgroupSize")))
__attribute__((address_space(389)))
uvec3 gl_WorkGroupSize;

__attribute__((annotate("shady::builtin::GlobalInvocationId")))
__attribute__((address_space(389)))
uvec3 gl_GlobalInvocationID;

#if defined(__cplusplus) & !defined(SHADY_CPP_NO_NAMESPACE)
}
#endif
Expand Down

0 comments on commit 55d206d

Please sign in to comment.