Files
LNXRNT/Kinc/Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/shader.h
2026-06-09 12:45:01 -07:00

38 lines
513 B
C

#pragma once
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
char name[64];
uint32_t offset;
uint32_t size;
} ShaderConstant;
typedef struct {
char name[64];
int attribute;
} ShaderAttribute;
typedef struct {
char name[64];
int texture;
} ShaderTexture;
typedef struct {
ShaderConstant constants[32];
int constantsSize;
ShaderAttribute attributes[32];
ShaderTexture textures[32];
int texturesCount;
void *shader;
uint8_t *data;
int length;
} Shader5Impl;
#ifdef __cplusplus
}
#endif