#[repr(C)]pub struct SDL_GPUComputePipelineCreateInfo {Show 14 fields
pub code_size: usize,
pub code: *const Uint8,
pub entrypoint: *const c_char,
pub format: SDL_GPUShaderFormat,
pub num_samplers: Uint32,
pub num_readonly_storage_textures: Uint32,
pub num_readonly_storage_buffers: Uint32,
pub num_readwrite_storage_textures: Uint32,
pub num_readwrite_storage_buffers: Uint32,
pub num_uniform_buffers: Uint32,
pub threadcount_x: Uint32,
pub threadcount_y: Uint32,
pub threadcount_z: Uint32,
pub props: SDL_PropertiesID,
}Expand description
Fields§
§code_size: usizeThe size in bytes of the compute shader code pointed to.
code: *const Uint8A pointer to compute shader code.
entrypoint: *const c_charA pointer to a null-terminated UTF-8 string specifying the entry point function name for the shader.
format: SDL_GPUShaderFormatThe format of the compute shader code.
num_samplers: Uint32The number of samplers defined in the shader.
num_readonly_storage_textures: Uint32The number of readonly storage textures defined in the shader.
num_readonly_storage_buffers: Uint32The number of readonly storage buffers defined in the shader.
num_readwrite_storage_textures: Uint32The number of read-write storage textures defined in the shader.
num_readwrite_storage_buffers: Uint32The number of read-write storage buffers defined in the shader.
num_uniform_buffers: Uint32The number of uniform buffers defined in the shader.
threadcount_x: Uint32The number of threads in the X dimension. This should match the value in the shader.
threadcount_y: Uint32The number of threads in the Y dimension. This should match the value in the shader.
threadcount_z: Uint32The number of threads in the Z dimension. This should match the value in the shader.
props: SDL_PropertiesIDA properties ID for extensions. Should be 0 if no extensions are needed.
Trait Implementations§
Source§impl Clone for SDL_GPUComputePipelineCreateInfo
impl Clone for SDL_GPUComputePipelineCreateInfo
Source§fn clone(&self) -> SDL_GPUComputePipelineCreateInfo
fn clone(&self) -> SDL_GPUComputePipelineCreateInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more