API Documentation
ProgramSourcesHolder.h
1 // ProgramSourcesHolder.h
3 //
5 
6 namespace nkGraphics
7 {
13  struct MacroEntry
14  {
17  } ;
18 }
19 
20 namespace nkGraphics
21 {
26  {
27  public :
28 
88  unsigned int getDefineMacroMaxNumber () const ;
92  unsigned int getDefineMacroMaxNumberPipeline () const ;
96  unsigned int getDefineMacroNumberCompute () const ;
100  unsigned int getDefineMacroNumberRaytracing () const ;
101 
179 
201  void copyDefinesFrom (const ProgramSourcesHolder& other) ;
202  } ;
203 }
nkGraphics::ProgramSourcesHolder::addDefineMacroPixel
void addDefineMacroPixel(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::getGeometryMemory
nkMemory::StringView getGeometryMemory() const
nkGraphics::ProgramSourcesHolder::getVertexMemory
nkMemory::StringView getVertexMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosDomain
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosDomain() const
nkGraphics::ProgramSourcesHolder::getHullMemory
nkMemory::StringView getHullMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosGeometry
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosGeometry() const
nkGraphics::ProgramSourcesHolder::addDefineMacroDomain
void addDefineMacroDomain(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::getDefineMacrosVertex
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosVertex() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosRaytracing
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosRaytracing() const
nkGraphics::ProgramSourcesHolder::setComputeMemory
void setComputeMemory(nkMemory::StringView str)
nkGraphics::ProgramSourcesHolder::addDefineMacroHull
void addDefineMacroHull(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsPipeline
bool hasMinimalDefinitionsPipeline() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsRaytracing
bool hasMinimalDefinitionsRaytracing() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsGeometry
bool hasMinimalDefinitionsGeometry() const
nkGraphics::ProgramSourcesHolder::setRaytracingMemory
void setRaytracingMemory(nkMemory::StringView str)
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberRaytracing
unsigned int getDefineMacroNumberRaytracing() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosCompute
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosCompute() const
nkGraphics::ProgramSourcesHolder::getRaytracingMemory
nkMemory::StringView getRaytracingMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumberPipeline
unsigned int getDefineMacroMaxNumberPipeline() const
nkGraphics::ProgramSourcesHolder::setHullMemory
void setHullMemory(nkMemory::StringView str)
nkGraphics::ProgramSourcesHolder::setDomainMemory
void setDomainMemory(nkMemory::StringView str)
nkGraphics::ProgramSourcesHolder::getDefineMacrosPixel
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosPixel() const
nkGraphics::ProgramSourcesHolder::getComputeMemory
nkMemory::StringView getComputeMemory() const
nkGraphics::ProgramSourcesHolder::addDefineMacroRaytracing
void addDefineMacroRaytracing(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::getPixelMemory
nkMemory::StringView getPixelMemory() const
nkGraphics::MacroEntry::_value
nkMemory::String _value
The value given to the macro.
Definition: ProgramSourcesHolder.h:16
nkGraphics::ProgramSourcesHolder::setVertexMemory
void setVertexMemory(nkMemory::StringView str)
nkGraphics::MacroEntry::_key
nkMemory::String _key
The macro key.
Definition: ProgramSourcesHolder.h:15
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumber
unsigned int getDefineMacroMaxNumber() const
nkMemory::String
Class holding information about a string, with ownership over the data.
Definition: String.h:22
nkGraphics::ProgramSourcesHolder::copyDefinesFrom
void copyDefinesFrom(const ProgramSourcesHolder &other)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::ProgramSourcesHolder
Holds the sources of a program.
Definition: ProgramSourcesHolder.h:26
nkGraphics::ProgramSourcesHolder::addDefineMacroVertex
void addDefineMacroVertex(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::addDefineMacroGeometry
void addDefineMacroGeometry(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::getDefineMacrosHull
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosHull() const
nkMemory::BufferCast
Holds a Buffer and make it easy to cast the binary data.
Definition: BufferCast.h:18
nkGraphics::ProgramSourcesHolder::getDomainMemory
nkMemory::StringView getDomainMemory() const
nkGraphics::MacroEntry
Holds information about a macro entry.
Definition: ProgramSourcesHolder.h:14
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsCompute
bool hasMinimalDefinitionsCompute() const
nkGraphics::ProgramSourcesHolder::setPixelMemory
void setPixelMemory(nkMemory::StringView str)
nkGraphics::ProgramSourcesHolder::setGeometryMemory
void setGeometryMemory(nkMemory::StringView str)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberCompute
unsigned int getDefineMacroNumberCompute() const
nkGraphics::ProgramSourcesHolder::addDefineMacroCompute
void addDefineMacroCompute(nkMemory::StringView key, nkMemory::StringView value)