ac/nir: load buffer descriptors via ac_shader_abi::load_ssbo
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -58,6 +58,16 @@ struct ac_shader_abi {
|
||||
|
||||
LLVMValueRef (*load_ubo)(struct ac_shader_abi *abi, LLVMValueRef index);
|
||||
|
||||
/**
|
||||
* Load the descriptor for the given buffer.
|
||||
*
|
||||
* \param buffer the buffer as presented in NIR: this is the descriptor
|
||||
* in Vulkan, and the buffer index in OpenGL/Gallium
|
||||
* \param write whether buffer contents will be written
|
||||
*/
|
||||
LLVMValueRef (*load_ssbo)(struct ac_shader_abi *abi,
|
||||
LLVMValueRef buffer, bool write);
|
||||
|
||||
/**
|
||||
* Load a descriptor associated to a sampler.
|
||||
*
|
||||
|
Reference in New Issue
Block a user