UraniumCompute 0.1.0
A GPU accelerated parallel task scheduler
UN::IResourceBinding Class Referenceabstract

Resource binding object used to bind resources to a compute kernel. More...

#include <IResourceBinding.h>

Inheritance diagram for UN::IResourceBinding:
UN::IDeviceObject UN::IObject UN::Object< IResourceBinding > UN::DeviceObjectBase< IResourceBinding > UN::ResourceBindingBase UN::VulkanResourceBinding

Public Types

using DescriptorType = ResourceBindingDesc
 

Public Member Functions

virtual const DescriptorTypeGetDesc () const =0
 
virtual ResultCode SetVariable (Int32 bindingIndex, IBuffer *pBuffer)=0
 Set kernel variable. More...
 
virtual ResultCode Init (const DescriptorType &desc)=0
 
- Public Member Functions inherited from UN::IDeviceObject
virtual std::string_view GetDebugName () const =0
 Get debug name of the object.
 
virtual void Reset ()=0
 Reset the object to uninitialized state. More...
 
virtual IComputeDeviceGetDevice () const =0
 Get the compute device this object was created on. More...
 
- Public Member Functions inherited from UN::IObject
virtual UInt32 AddRef ()=0
 Add a strong reference to object's reference counter. More...
 
virtual UInt32 Release ()=0
 Remove a strong reference from object's reference counter. More...
 
virtual void AttachRefCounter (ReferenceCounter *counter)=0
 Attach a ReferenceCounter to this object. More...
 
virtual ReferenceCounterGetRefCounter ()=0
 Get reference counter that belongs to this object. More...
 

Detailed Description

Resource binding object used to bind resources to a compute kernel.

Member Function Documentation

◆ SetVariable()

virtual ResultCode UN::IResourceBinding::SetVariable ( Int32  bindingIndex,
IBuffer pBuffer 
)
pure virtual

Set kernel variable.

Parameters
bindingIndex- Binding index of the variable to set.
pBuffer- The buffer to assign.
Returns
ResultCode::Success or an error code.

Implemented in UN::VulkanResourceBinding.


The documentation for this class was generated from the following file: