|
API Documentation
|
|
|
Contains all information of the result of a map operation on a resource.
Definition: MapResult.h:12
RESOURCE_MISC_FLAG
Available misc flags for resources.
Definition: ResourceMiscFlag.h:12
A description of a request to map a resource.
Definition: MapRequestDescriptor.h:29
virtual BUFFER_USAGE getUsage() const =0
virtual void prepareForShaderResourceUsage(bool value=true)
virtual void unmap(const UnmapRequestDescriptor &requestDesc)=0
virtual void setMiscFlag(RESOURCE_MISC_FLAG value)=0
BUFFER_CPU_ACCESS_FLAG
Available cpu access flags.
Definition: BufferCpuAccessFlag.h:12
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
virtual void gpuCopyFrom(Buffer &other, const ResourceGpuCopyDescriptor &descriptor)=0
A view over data.
Definition: BufferView.h:18
Description of an unmap request.
Definition: UnmapRequestDescriptor.h:19
virtual void setCpuAccessFlag(BUFFER_CPU_ACCESS_FLAG value)=0
BUFFER_USAGE
Available usage for buffers. Drives the memory used for hosting the data.
Definition: BufferUsage.h:12
A buffer that will reside on the GPU.
Definition: Buffer.h:17
virtual BUFFER_BIND_FLAG getBindFlag() const =0
virtual void setElementCount(unsigned int value)
unsigned int getElementByteSize() const
virtual void prepareForComputeResourceUsage(bool value=true)
virtual BUFFER_CPU_ACCESS_FLAG getCpuAccessFlag() const =0
virtual void exportClassToTree(nkExport::Node *rootNode) override
A buffer holding binary data.
Definition: Buffer.h:32
virtual void setUsage(BUFFER_USAGE value)=0
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
virtual RESOURCE_MISC_FLAG getMiscFlag() const =0
virtual void importClassFromTree(nkExport::Node *rootNode) override
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
void setCpuDataCopy(nkMemory::BufferView<> data)
unsigned int getElementCount() const
virtual MapResult map(const MapRequestDescriptor &requestDesc)=0
virtual void prepareForOutputStreamUsage(bool value=true)
virtual void setElementByteSize(unsigned int value)
void setCpuData(nkMemory::BufferView<> data)
void setCpuDataForward(nkMemory::Buffer &&data)
virtual void copyParams(const Buffer &other)
unsigned int getTotalByteSize() const
virtual void freeCpuData()
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
virtual void setBindFlag(BUFFER_BIND_FLAG value)=0
static nkMemory::UniquePtr< Buffer > create(System *system=nullptr)
Holds information about a resource copy happening on the GPU only.
Definition: ResourceGpuCopyDescriptor.h:12
Buffer & operator=(const Buffer &other)=delete
BUFFER_BIND_FLAG
Available binding flags for buffers.
Definition: BufferBindFlag.h:12
Base class for shader resources. Those are resources that can be fed to a Shader.
Definition: ShaderResource.h:12