46 lines
804 B
C
46 lines
804 B
C
#pragma once
|
|
|
|
#include <kinc/backend/graphics4/ShaderHash.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct ID3D11Buffer;
|
|
|
|
typedef struct {
|
|
uint32_t offset;
|
|
uint32_t size;
|
|
uint8_t columns;
|
|
uint8_t rows;
|
|
} kinc_compute_constant_location_impl_t;
|
|
|
|
typedef struct {
|
|
int unit;
|
|
} kinc_compute_texture_unit_impl_t;
|
|
|
|
typedef struct {
|
|
uint32_t hash;
|
|
uint32_t offset;
|
|
uint32_t size;
|
|
uint8_t columns;
|
|
uint8_t rows;
|
|
} kinc_compute_internal_shader_constant_t;
|
|
|
|
typedef struct {
|
|
#ifndef KINC_KONG
|
|
kinc_compute_internal_shader_constant_t constants[64];
|
|
int constantsSize;
|
|
kinc_internal_hash_index_t attributes[64];
|
|
kinc_internal_hash_index_t textures[64];
|
|
struct ID3D11Buffer *constantBuffer;
|
|
#endif
|
|
void *shader;
|
|
uint8_t *data;
|
|
int length;
|
|
} kinc_compute_shader_impl_t;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|