|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Represents a mock shader implementation. More...
#include <NullShader.hpp>


Public Member Functions | |
| NullShader ()=default | |
| void * | GetHandle () const noexcept override |
| Gets an opaque handle to the underlying GPU resource. | |
| IGraphicsDevice * | GetGraphicsDevice () const noexcept override |
| Gets the GraphicsDevice that created this resource. | |
| void | SetData (unsigned index, const void *data, size_t dataSize) override |
| Sets an entire uniform buffer to the shader. | |
| void | SetTexture (unsigned index, ITexture1D *texture) override |
| Sets the specified texture to a given index. | |
| void | SetTextures (std::span< ITexture1D * > textures) override |
| Sets multiple textures to the shader using a span of ITexture1D pointers. | |
| void | SetTexture (unsigned index, ITexture2D *texture) override |
| Sets an 2D texture to the shader at the specified index. | |
| void | SetTextures (std::span< ITexture2D * > textures) override |
| Sets multiple 2D textures to the shader using a span of ITexture2D pointers. | |
| void | SetTexture (unsigned index, ITextureCube *texture) override |
| Sets an cube texture to the shader at the specified index. | |
| void | SetTextures (std::span< ITextureCube * > textures) override |
| Sets multiple cube textures to the shader using a span of ITextureCube pointers. | |
| void | SetSampler (unsigned index, ISamplerState *samplerState) override |
| Sets an texture sampler state at the specified index. | |
| void | SetShader () override |
| Sets the constant buffers and the shader to the rendering pipeline. | |
| std::vector< Reflection::IReflectedField * > | GetVariables () const override |
| Gets the exposed variables of the shader, which can be used to set values for the shader's uniform buffers. | |
| void | Set (const std::string &name, const void *data, size_t dataSize) override |
| Sets a value for a shader variable by name. The data is copied into the shader's uniform buffer. | |
| std::string_view | GetEntryName () const noexcept override |
| Gets the name of the entry point function for this shader. | |
| const char * | GetCompilationErrorsAndWarnings () const noexcept override |
| Gets the compilation results for this shader. | |
| ~NullShader () override=default | |
| Public Member Functions inherited from Engine3DRadSpace.Graphics.IShader | |
| void | SetData (uint index, IntPtr data, ulong dataSize) |
| void | SetTexture (uint index, ITexture2D texture) |
| void | SetTextures (Span< ITexture2D > textures) |
| void | SetSampler (uint index, ISamplerState samplerState) |
| void | SetShader () |
| Reflection.IReflectedField[] | GetVariables () |
| template<typename T> | |
| void | Set (const std::string &name, const T &data) |
| Sets a value for a shader variable by name. The data is copied into the shader's uniform buffer. | |
| template<typename T> | |
| void | SetData (const T *data, unsigned index) |
| Sets an entire uniform buffer to the shader. | |
| ~IShader () override=default | |
| Public Member Functions inherited from Engine3DRadSpace.Graphics.IGPUResource | |
| virtual | ~IGPUResource ()=default |
Additional Inherited Members | |
| Protected Member Functions inherited from Engine3DRadSpace.Graphics.IShader | |
| IShader ()=default | |
| IShader (const IShader &)=delete | |
| IShader (IShader &&) noexcept=default | |
| IShader & | operator= (const IShader &)=delete |
| IShader & | operator= (IShader &&) noexcept=default |
| Protected Member Functions inherited from Engine3DRadSpace.Graphics.IGPUResource | |
| IGPUResource ()=default | |
| IGPUResource (const IGPUResource &)=delete | |
| IGPUResource & | operator= (const IGPUResource &)=delete |
| IGPUResource (IGPUResource &&) noexcept=default | |
| IGPUResource & | operator= (IGPUResource &&) noexcept=default |
| Properties inherited from Engine3DRadSpace.Graphics.IShader | |
| string | EntryName [get] |
| string | CompilationErrorsAndWarnings [get] |
| Properties inherited from Engine3DRadSpace.IPtrWrapper | |
| IntPtr | Handle [get] |
| Properties inherited from Engine3DRadSpace.Graphics.IGPUResource | |
| IGraphicsDevice | GraphicsDevice [get] |
| IntPtr | GPUHandle [get] |
Represents a mock shader implementation.
|
default |
|
overridedefault |
|
overridevirtualnoexcept |
Gets the compilation results for this shader.
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtualnoexcept |
Gets the name of the entry point function for this shader.
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtualnoexcept |
Gets the GraphicsDevice that created this resource.
Implements Engine3DRadSpace.Graphics.IGPUResource.
|
overridevirtualnoexcept |
Gets an opaque handle to the underlying GPU resource.
Implements Engine3DRadSpace.Graphics.IGPUResource.
|
overridevirtual |
Gets the exposed variables of the shader, which can be used to set values for the shader's uniform buffers.
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtual |
Sets a value for a shader variable by name. The data is copied into the shader's uniform buffer.
Prefer setting the data drectly using the SetData<T> method for better performance.
| name | The name of the shader variable to set. |
| data | A pointer to the data to set. |
| dataSize | The size of the data in bytes. |
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtual |
Sets an entire uniform buffer to the shader.
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtual |
Sets an texture sampler state at the specified index.
| index | The index at which to set the sampler state. |
| samplerState | The sampler state to set. |
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtual |
Sets the constant buffers and the shader to the rendering pipeline.
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtual |
Sets the specified texture to a given index.
| index | The index at which to set the texture. |
| texture | The texture to set. |
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtual |
Sets an 2D texture to the shader at the specified index.
| index | The index at which to set the texture. |
| texture | The texture to set. |
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtual |
Sets an cube texture to the shader at the specified index.
| index | The index at which to set the texture. |
| texture | The texture to set. |
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtual |
Sets multiple textures to the shader using a span of ITexture1D pointers.
| textures | A span of ITexture1D pointers to set. |
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtual |
Sets multiple 2D textures to the shader using a span of ITexture2D pointers.
| textures | A span of ITexture2D pointers to set. |
Implements Engine3DRadSpace.Graphics.IShader.
|
overridevirtual |
Sets multiple cube textures to the shader using a span of ITextureCube pointers.
| textures | A span of ITextureCube pointers to set. |
Implements Engine3DRadSpace.Graphics.IShader.