Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
shaderfeature.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
16
#include "
util/stringatom.h
"
17
#include "
util/hashtable.h
"
18
19
namespace
Base
20
{
21
class
ShaderServerBase
;
22
}
23
24
//------------------------------------------------------------------------------
25
namespace
CoreGraphics
26
{
27
class
ShaderFeature
28
{
29
public
:
31
typedef
uint
Mask
;
33
typedef
Util::StringAtom
Name
;
34
35
private
:
36
friend
class
Base::ShaderServerBase
;
37
39
ShaderFeature
();
41
Mask
StringToMask
(
const
Util::String
& str);
43
Util::String
MaskToString
(
Mask
mask);
44
45
Util::HashTable<Mask, Name>
nameHash
;
46
};
47
48
}
// namespace CoreGraphics
49
//------------------------------------------------------------------------------
50
51
Base::ShaderServerBase
The ShaderServer loads all shaders when created, meaning all shaders in the project must be valid and...
Definition
shaderserverbase.h:59
CoreGraphics::ShaderFeature::nameHash
Util::HashTable< Mask, Name > nameHash
Definition
shaderfeature.h:45
CoreGraphics::ShaderFeature::StringToMask
Mask StringToMask(const Util::String &str)
generate a bit mask from a shader feature string
Definition
shaderfeature.cc:27
CoreGraphics::ShaderFeature::MaskToString
Util::String MaskToString(Mask mask)
convert a bit mask into a shader feature string
Definition
shaderfeature.cc:49
CoreGraphics::ShaderFeature::ShaderFeature
ShaderFeature()
constructor
Definition
shaderfeature.cc:16
CoreGraphics::ShaderFeature::Name
Util::StringAtom Name
a single shader feature name
Definition
shaderfeature.h:33
CoreGraphics::ShaderFeature::Mask
uint Mask
a shader feature bit mask
Definition
shaderfeature.h:31
Util::HashTable
Organizes key/value pairs by a hash code.
Definition
hashtable.h:42
Util::StringAtom
A StringAtom.
Definition
stringatom.h:22
hashtable.h
Base
Definition
gamecontentserverbase.cc:10
CoreGraphics
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition
accelerationstructure.h:24
stringatom.h
Util.String
Nebula's universal string class.
Definition
String.cs:8
uint
unsigned int uint
Definition
types.h:33
code
render
coregraphics
shaderfeature.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.