|
API Documentation
|
|
|
nkMaths::Matrix * getDataAsMatrix() const
ShaderPassMemorySlot(System *system) noexcept
void setAsProjectionParameters(Camera *forcedCamera=nullptr)
@ TIME
Writes information about time (float4).
A memory slot in a memory resource.
Definition: ShaderMemorySlot.h:15
@ VIEW_MATRIX_INV
Writes the active inverse view matrix (float4x4).
void setAsViewMatrix(Camera *forcedCamera=nullptr)
@ CAM_POSITION
Writes the active camera position (float4).
Offers all controls to model a camera.
Definition: Camera.h:14
@ VECTOR
Writes a vector (float4).
virtual void importClassFromTree(nkExport::Node *rootNode) override
A texture used for rendering, hosted on GPU.
Definition: Texture.h:35
void setAsProjectionMatrix(Camera *forcedCamera=nullptr)
DATA_TYPE getType() const
@ CUSTOM
Uses a custom slot made by external code.
@ TEXTURE_SIZE
Writes a given texture's size (int4).
@ CAM_CORNERS_VIEW
Writes the cam corners direction in view space (float4 [4]).
@ TARGET_SIZE
Writes the active render target size (int4).
Represents a 4x4 float matrix.
Definition: Matrix.h:14
void setAsProjectionMatrixInv(Camera *forcedCamera=nullptr)
@ PROJECTION_PARAMS
Writes the projection parameters (float4).
DATA_TYPE
Definition: ShaderPassMemorySlot.h:22
@ VIEW_MATRIX
Writes the active view matrix (float4x4).
virtual nkMemory::StringView getDataTypeAsString() const override
void setAsCamCornersView(Camera *forcedCamera=nullptr)
A memory slot that fits into a ConstantBuffer. The slot fills entries within the buffer.
Definition: ShaderPassMemorySlot.h:15
@ PROJ_MATRIX_INV
Writes the active inverse projection matrix (float4x4).
nkMaths::Vector * getDataAsVector() const
void setFromVector(const nkMaths::Vector &data)
@ MATRIX
Writes a matrix (float4x4).
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
void setAsCameraDirectionWorld(Camera *forcedCamera=nullptr)
void setAsViewMatrixInv(Camera *forcedCamera=nullptr)
@ UNKNOWN
Unknown place holder.
virtual unsigned int getDataSize() const
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
void setAsTextureSize(Texture *tex)
void setAsCustom(nkMemory::UniquePtr< ShaderPassCustomSlot > slot)
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
@ CAM_CORNERS_WORLD
Writes the cam corners direction in world space (float4 [4]).
@ CAM_DIRECTION_WORLD
Writes the active camera direction (float4).
virtual ~ShaderPassMemorySlot()
@ PROJ_MATRIX
Writes the active projection matrix (float4x4).
void setAsTime(unsigned int modulo)
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
void setAsCameraPosition(Camera *forcedCamera=nullptr)
A 4-component vector class, with floats.
Definition: Vector.h:12
void setAsCamCornersWorld(Camera *forcedCamera=nullptr)
virtual void exportClassToTree(nkExport::Node *rootNode) override
void setFromMatrix(const nkMaths::Matrix &data)