3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Graphics.ShaderDesc Struct Reference

Shader description base polymorphic type. More...

#include <ShaderDesc.hpp>

Inheritance diagram for Engine3DRadSpace.Graphics.ShaderDesc:
Collaboration diagram for Engine3DRadSpace.Graphics.ShaderDesc:

Public Member Functions

 ShaderDesc (IntPtr handle)
virtual ~ShaderDesc ()=default
Public Member Functions inherited from Engine3DRadSpace.NatPtrWrapper
virtual void Dispose ()

Static Public Member Functions

static ShaderDesc FromFile (string path, string entry, ShaderType type, ShaderFeatureLevel featureLevel=ShaderFeatureLevel.DX_V4)
static ShaderDesc FromSource (string source, string entry, ShaderType type, ShaderFeatureLevel featureLevel=ShaderFeatureLevel.DX_V4)

Public Attributes

std::string EntryPoint
 Entry point function name.
ShaderType Type
 Shader type (fragment, vertex, etc.).
ShaderFeatureLevel FeatureLevel
 Shader feature level.

Protected Member Functions

 ShaderDesc (const std::string &EntryPoint, ShaderType type, ShaderFeatureLevel FeatureLevel=ShaderFeatureLevel::DX_V4)
 Constructs an incomplete shader description.
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)

Additional Inherited Members

Protected Attributes inherited from Engine3DRadSpace.NatPtrWrapper
IntPtr _handle
bool _disposed
Properties inherited from Engine3DRadSpace.NatPtrWrapper
IntPtr Handle [get]

Detailed Description

Shader description base polymorphic type.

Constructor & Destructor Documentation

◆ ShaderDesc() [1/2]

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

◆ ShaderDesc() [2/2]

ShaderDesc::ShaderDesc ( const std::string & EntryPoint,
ShaderType type,
ShaderFeatureLevel FeatureLevel = ShaderFeatureLevel::DX_V4 )
protected

Constructs an incomplete shader description.

Parameters
EntryPointEntry point function name
typeShader type
FeatureLevelShader feature level

◆ ~ShaderDesc()

virtual Engine3DRadSpace.Graphics.ShaderDesc.~ShaderDesc ( )
virtualdefault

Member Function Documentation

◆ FromFile()

ShaderDesc Engine3DRadSpace.Graphics.ShaderDesc.FromFile ( string path,
string entry,
ShaderType type,
ShaderFeatureLevel featureLevel = ShaderFeatureLevel::DX_V4 )
inlinestatic

◆ FromSource()

ShaderDesc Engine3DRadSpace.Graphics.ShaderDesc.FromSource ( string source,
string entry,
ShaderType type,
ShaderFeatureLevel featureLevel = ShaderFeatureLevel::DX_V4 )
inlinestatic

Member Data Documentation

◆ EntryPoint

std::string Engine3DRadSpace.Graphics.ShaderDesc.EntryPoint

Entry point function name.

◆ FeatureLevel

ShaderFeatureLevel Engine3DRadSpace.Graphics.ShaderDesc.FeatureLevel

Shader feature level.

◆ Type

ShaderType Engine3DRadSpace.Graphics.ShaderDesc.Type

Shader type (fragment, vertex, etc.).


The documentation for this struct was generated from the following files: