|
| | InstIShader (IntPtr handle) |
| void | SetData (uint index, nint data, ulong dataSize) |
| void | SetTexture (uint index, ITexture2D texture) |
| unsafe void | SetTextures (Span< ITexture2D > textures) |
| void | SetSampler (uint index, ISamplerState samplerState) |
| void | SetShader () |
| | Sets the constant buffers and the shader to the rendering pipeline.
|
| unsafe IReflectedField[] | GetVariables () |
| virtual void | Dispose () |
| 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 () |
| virtual void | SetData (unsigned index, const void *data, size_t dataSize)=0 |
| | Sets an entire uniform buffer to the shader.
|
| virtual void | SetTexture (unsigned index, ITexture1D *texture)=0 |
| | Sets the specified texture to a given index.
|
| virtual void | SetTextures (std::span< ITexture1D * > textures)=0 |
| | Sets multiple textures to the shader using a span of ITexture1D pointers.
|
| virtual void | SetTexture (unsigned index, ITexture2D *texture)=0 |
| | Sets an 2D texture to the shader at the specified index.
|
| virtual void | SetTextures (std::span< ITexture2D * > textures)=0 |
| | Sets multiple 2D textures to the shader using a span of ITexture2D pointers.
|
| virtual void | SetTexture (unsigned index, ITextureCube *texture)=0 |
| | Sets an cube texture to the shader at the specified index.
|
| virtual void | SetTextures (std::span< ITextureCube * > textures)=0 |
| | Sets multiple cube textures to the shader using a span of ITextureCube pointers.
|
| virtual void | SetSampler (unsigned index, ISamplerState *samplerState)=0 |
| | Sets an texture sampler state at the specified index.
|
| virtual std::vector< Reflection::IReflectedField * > | GetVariables () const =0 |
| | Gets the exposed variables of the shader, which can be used to set values for the shader's uniform buffers.
|
| virtual void | Set (const std::string &name, const void *data, size_t dataSize)=0 |
| | Sets a value for a shader variable by name. The data is copied into the shader's uniform buffer.
|
| 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.
|
| virtual std::string_view | GetEntryName () const noexcept=0 |
| | Gets the name of the entry point function for this shader.
|
| virtual const char * | GetCompilationErrorsAndWarnings () const noexcept=0 |
| | Gets the compilation results for this shader.
|
| | ~IShader () override=default |
| virtual void * | GetHandle () const noexcept=0 |
| | Gets an opaque handle to the underlying GPU resource.
|
| virtual IGraphicsDevice * | GetGraphicsDevice () const noexcept=0 |
| | Gets the GraphicsDevice that created this resource.
|
| virtual | ~IGPUResource ()=default |