49 if (global_id.x >= uint(srt.count)) {
52 const uint i = uint(srt.start) + global_id.x;
53 srt.dst[i] = srt.src[srt.indices[i]];
82 if (global_id.x >= uint(srt.count)) {
85 const uint face = uint(srt.start) + global_id.x;
86 const T value = srt.src[face];
87 for (uint corner = srt.face_offsets[face]; corner < srt.face_offsets[face + 1]; corner++) {
88 srt.dst[corner] = value;
#define DRW_MESH_TO_CORNER_GROUP_SIZE
#define storage(slot, qualifiers)
#define global_invocation_id
PipelineCompute gather_12(gather_main< StoredUint3 >)
void scatter_faces_main(ScatterFacesResources< T > &srt, const uint3 global_id)
PipelineCompute scatter_faces_4(scatter_faces_main< StoredUint >)
PipelineCompute gather_16(gather_main< StoredUint4 >)
PipelineCompute scatter_faces_12(scatter_faces_main< StoredUint3 >)
PipelineCompute scatter_faces_8(scatter_faces_main< StoredUint2 >)
PipelineCompute scatter_faces_16(scatter_faces_main< StoredUint4 >)
void gather_main(GatherResources< T > &srt, const uint3 global_id)
PipelineCompute gather_4(gather_main< StoredUint >)
PipelineCompute gather_8(gather_main< StoredUint2 >)
const uint(& face_offsets)[]