15 lines
286 B
GLSL
15 lines
286 B
GLSL
#ifndef DRAW_CMDS_DATA_GLSL
|
|
#define DRAW_CMDS_DATA_GLSL
|
|
|
|
struct DrawCmdData {
|
|
mat4 transform;
|
|
int materialIdx;
|
|
};
|
|
|
|
layout(std430, binding = 3) readonly buffer DrawCmdDatas {
|
|
// Access by gl_BaseInstance + gl_InstanceID
|
|
DrawCmdData draw_data[];
|
|
};
|
|
|
|
#endif // DRAW_CMDS_DATA_GLSL
|