|
API Documentation
|
|
|
Contains all information of the result of a map operation on a resource.
Definition: MapResult.h:12
virtual bool getAutoMipGeneration() const =0
RESOURCE_MISC_FLAG
Available misc flags for resources.
Definition: ResourceMiscFlag.h:12
virtual unsigned int getSampleCount() const =0
A description of a request to map a resource.
Definition: MapRequestDescriptor.h:29
void setFromImageCopy(const nkImages::ImageView &image)
bool isGammaCorrected() const
virtual void prepareAsCubemap()
virtual BUFFER_USAGE getTextureUsage() const =0
virtual unsigned int getMipLevels() const =0
BUFFER_CPU_ACCESS_FLAG
Available cpu access flags.
Definition: BufferCpuAccessFlag.h:12
virtual void freeCpuData()
A texture used for rendering, hosted on GPU.
Definition: Texture.h:35
virtual void unmap(const UnmapRequestDescriptor &requestDesc)=0
virtual RESOURCE_MISC_FLAG getMiscFlag() const =0
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
A view over data.
Definition: BufferView.h:18
Holds all information required for an image, with no ownership over the data.
Definition: ImageView.h:14
virtual void copyParams(const Texture &other)=0
Description of an unmap request.
Definition: UnmapRequestDescriptor.h:19
BUFFER_USAGE
Available usage for buffers. Drives the memory used for hosting the data.
Definition: BufferUsage.h:12
TextureCpuDataDescriptor * getCpuData() const
@ DEPTH_RENDER_TARGET
Used as a depth target rendering.
virtual FORMAT getTextureFormat() const =0
virtual void generateMipChain(unsigned int fromMip=0)=0
void setMightManuallyGenerateMip(bool value)
@ RENDER_TARGET
Used as a color target rendering.
void addCpuDataSliceRelativeToLast(unsigned int byteOffset=0u, unsigned int rowByteSize=0u, unsigned int sliceByteSize=0u)
void addCpuDataSlice(const nkMemory::BufferView<> &data, unsigned int byteOffset=0u, unsigned int rowByteSize=0u, unsigned int sliceByteSize=0u)
virtual void setMipLevels(unsigned int value)=0
A buffer holding binary data.
Definition: Buffer.h:32
virtual BUFFER_BIND_FLAG getTextureBinding() const =0
virtual void prepareAsTexture2d()
virtual void setDepthOrArraySize(unsigned int depth)=0
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
void addCpuDataSliceForward(nkMemory::Buffer &&data, unsigned int byteOffset=0u, unsigned int rowByteSize=0u, unsigned int sliceByteSize=0u)
virtual void setAutoMipGeneration(bool value)=0
virtual void importClassFromTree(nkExport::Node *rootNode) override
virtual void setCpuAccessRights(BUFFER_CPU_ACCESS_FLAG rights)=0
unsigned int getCpuSliceCount() const
void addCpuDataSliceCopy(const nkMemory::BufferView<> &data, unsigned int byteOffset=0u, unsigned int rowByteSize=0u, unsigned int sliceByteSize=0u)
void setCpuData(const ResourceCpuDataDescriptor &data)
void setFromImage(const nkImages::ImageView &image)
TEX_TYPE
The type a texture can be.
Definition: Texture.h:12
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
virtual void setTextureUsage(BUFFER_USAGE usage)=0
virtual void setHeight(unsigned int height)=0
virtual int getWidth() const =0
TEX_TYPE getTexType() const
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
virtual void setGammaCorrected(bool value)
virtual void setTextureFormat(FORMAT format)=0
virtual void exportClassToTree(nkExport::Node *rootNode) override
virtual unsigned int getSampleQuality() const =0
bool isBackBufferTex() const
virtual BUFFER_CPU_ACCESS_FLAG getCpuAccessRights() const =0
virtual void setWidth(unsigned int width)=0
void setTextureFormatFromString(nkMemory::StringView str)
virtual void setRenderFlag(TEX_RENDER_FLAG value)
virtual void setPath(nkMemory::StringView value) override
void setBackBufferTex(bool value)
@ NO_RENDER
Not used as a target.
virtual int getDepthOrArraySize() const =0
unsigned int getNeededMipsForSize() const
FORMAT
Available formats for resources.
Definition: DxDefinesWrapper.h:86
TEX_RENDER_FLAG getRenderFlag() const
virtual void prepareAsTexture3d()
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
virtual MapResult map(const MapRequestDescriptor &requestDesc)=0
virtual void setTextureBinding(BUFFER_BIND_FLAG binding)=0
Holds information about a resource copy happening on the GPU only.
Definition: ResourceGpuCopyDescriptor.h:12
TEX_RENDER_FLAG
The render flag possible for a texture.
Definition: Texture.h:22
virtual int getHeight() const =0
static nkMemory::UniquePtr< Texture > create(System *system=nullptr)
Holds all information required for an image, with ownership over the data.
Definition: Image.h:14
BUFFER_BIND_FLAG
Available binding flags for buffers.
Definition: BufferBindFlag.h:12
virtual void gpuCopyFrom(Texture &other, const ResourceGpuCopyDescriptor &descriptor)=0
void setFromImageForward(nkImages::Image &&image)
nkImages::Image convertToImage(int mip, int sliceOrArrayIndex)
Base class for shader resources. Those are resources that can be fed to a Shader.
Definition: ShaderResource.h:12