|
UraniumCompute 0.1.0
A GPU accelerated parallel task scheduler
|
Resource binding object used to bind resources to a compute kernel. More...
#include <IResourceBinding.h>
Public Types | |
| using | DescriptorType = ResourceBindingDesc |
Public Member Functions | |
| virtual const DescriptorType & | GetDesc () 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 IComputeDevice * | GetDevice () 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 ReferenceCounter * | GetRefCounter ()=0 |
| Get reference counter that belongs to this object. More... | |
Resource binding object used to bind resources to a compute kernel.
|
pure virtual |
Set kernel variable.
| bindingIndex | - Binding index of the variable to set. |
| pBuffer | - The buffer to assign. |
Implemented in UN::VulkanResourceBinding.