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

34 lines
796 B
C

#include <kinc/graphics5/constantbuffer.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
bool kinc_g5_transposeMat3 = false;
bool kinc_g5_transposeMat4 = false;
void kinc_g5_constant_buffer_init(kinc_g5_constant_buffer_t *buffer, int size) {
buffer->impl.mySize = size;
buffer->data = malloc(size);
}
void kinc_g5_constant_buffer_destroy(kinc_g5_constant_buffer_t *buffer) {
free(buffer->data);
}
void kinc_g5_constant_buffer_lock_all(kinc_g5_constant_buffer_t *buffer) {}
void kinc_g5_constant_buffer_lock(kinc_g5_constant_buffer_t *buffer, int start, int count) {}
void kinc_g5_constant_buffer_unlock(kinc_g5_constant_buffer_t *buffer) {}
int kinc_g5_constant_buffer_size(kinc_g5_constant_buffer_t *buffer) {
return buffer->impl.mySize;
}
#ifdef __cplusplus
}
#endif