A generic structure containing a GPU shader, in text or byte-code format. More...
#include <vkd3d_shader.h>
Data Fields | |
const void * | code |
Pointer to the code. | |
size_t | size |
Size of code, in bytes. | |
A generic structure containing a GPU shader, in text or byte-code format.
const void* vkd3d_shader_code::code |
Pointer to the code.
Note that textual formats are not null-terminated. Therefore size should not include a null terminator, when this structure is passed as input to a vkd3d-shader function, and the allocated string will not include a null terminator when this structure is used as output.