ArcGIS Procedural Runtime  3.2.10650
List of all members | Public Member Functions
prtx::ShaderBuilder Class Reference

#include <Shader.h>

Inheritance diagram for prtx::ShaderBuilder:
[legend]

Public Member Functions

size_t addKey (const std::wstring &name, Shader::KeyType type, size_t size)
 
virtual ShaderPtr createShared (std::wstring *warnings=0) const
 
virtual ShaderPtr createSharedAndReset (std::wstring *warnings=0)
 
void setName (const std::wstring &name)
 
- Public Member Functions inherited from prtx::SharedPtrBuilder< Shader >
SharedPtrBuilderoperator= (const SharedPtrBuilder &)=delete
 
 SharedPtrBuilder (const SharedPtrBuilder &)=delete
 

Detailed Description

The ShaderBuilder class can be used to extend the default Shader.

Member Function Documentation

◆ createShared()

virtual ShaderPtr prtx::ShaderBuilder::createShared ( std::wstring *  warnings = 0) const
virtual

Creates an instance of type C based on the current builder state. Does not modify the builder state.

Parameters
[out]warningsIf warnings != 0, a builder implementation may emit warnings about the creation process.
Returns
Shared pointer to a new instance of type C.

Implements prtx::SharedPtrBuilder< Shader >.

◆ createSharedAndReset()

virtual ShaderPtr prtx::ShaderBuilder::createSharedAndReset ( std::wstring *  warnings = 0)
virtual

Creates and instance of type C based on the current builder state. Resets the builder state at the end.

Parameters
[out]warningsIf warnings != 0, a builder implementation may emit warnings about the creation process.
Returns
Shared pointer to a new instance of type C.

Implements prtx::SharedPtrBuilder< Shader >.


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