3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Graphics.InstIShader Class Reference
Inheritance diagram for Engine3DRadSpace.Graphics.InstIShader:
Collaboration diagram for Engine3DRadSpace.Graphics.InstIShader:

Public Member Functions

 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 ()
Public Member Functions inherited from Engine3DRadSpace.NatPtrWrapper
virtual void Dispose ()
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 ()
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
Public Member Functions inherited from Engine3DRadSpace.Graphics.IGPUResource
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

Properties

string EntryName [get]
string CompilationErrorsAndWarnings [get]
Properties inherited from Engine3DRadSpace.NatPtrWrapper
IntPtr Handle [get]
Properties inherited from Engine3DRadSpace.Graphics.IShader
string EntryName [get]
string CompilationErrorsAndWarnings [get]
Properties inherited from Engine3DRadSpace.Graphics.IGPUResource
IGraphicsDevice GraphicsDevice [get]
IntPtr GPUHandle [get]

Additional Inherited Members

Protected Member Functions inherited from Engine3DRadSpace.NatPtrWrapper
 NatPtrWrapper (IntPtr handle, Action< IntPtr > fnDestroy)
 NatPtrWrapper (Action< IntPtr > fnDestroy)
void Reset (IntPtr newObj)
void Dispose (bool disposing)
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
Protected Attributes inherited from Engine3DRadSpace.NatPtrWrapper
IntPtr _handle
bool _disposed

Constructor & Destructor Documentation

◆ InstIShader()

Engine3DRadSpace.Graphics.InstIShader.InstIShader ( IntPtr handle)
inline

Member Function Documentation

◆ GetVariables()

unsafe IReflectedField[] Engine3DRadSpace.Graphics.InstIShader.GetVariables ( )
inline

◆ SetData()

void Engine3DRadSpace.Graphics.InstIShader.SetData ( uint index,
nint data,
ulong dataSize )
inline

◆ SetSampler()

void Engine3DRadSpace.Graphics.InstIShader.SetSampler ( uint index,
ISamplerState samplerState )
inline

◆ SetShader()

void Engine3DRadSpace.Graphics.InstIShader.SetShader ( )
inlinevirtual

Sets the constant buffers and the shader to the rendering pipeline.

Implements Engine3DRadSpace.Graphics.IShader.

Reimplemented in Engine3DRadSpace.Graphics.Rendering.PostProcessEffect.

◆ SetTexture()

void Engine3DRadSpace.Graphics.InstIShader.SetTexture ( uint index,
ITexture2D texture )
inline

◆ SetTextures()

unsafe void Engine3DRadSpace.Graphics.InstIShader.SetTextures ( Span< ITexture2D > textures)
inline

Property Documentation

◆ CompilationErrorsAndWarnings

string Engine3DRadSpace.Graphics.InstIShader.CompilationErrorsAndWarnings
get

◆ EntryName

string Engine3DRadSpace.Graphics.InstIShader.EntryName
get

The documentation for this class was generated from the following file: