27 lines
No EOL
585 B
GLSL
27 lines
No EOL
585 B
GLSL
#version 460
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
layout(std430, binding = 0) buffer DrawCommand {
|
|
uint indexCount;
|
|
uint instanceCount;
|
|
uint firstIndex;
|
|
int vertexOffset;
|
|
uint firstInstance;
|
|
} drawCmd;
|
|
|
|
layout(std430, binding = 1) buffer Counters {
|
|
uint vertexCount;
|
|
uint indexCount;
|
|
} counters;
|
|
|
|
void main() {
|
|
drawCmd.indexCount = 0u;
|
|
drawCmd.instanceCount = 1u;
|
|
drawCmd.firstIndex = 0u;
|
|
drawCmd.vertexOffset = 0;
|
|
drawCmd.firstInstance = 0u;
|
|
|
|
counters.vertexCount = 0u;
|
|
counters.indexCount = 0u;
|
|
} |