Files
LNXRNT/Kinc/Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/shader.h
2025-01-29 10:55:49 +01:00

37 lines
512 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