Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::anonymous_namespace{ShaderProgram.cpp} Namespace Reference

Functions

void RefreshBindingSlots ()
 
ResourcePath ShaderAPILocation ()
 
ResourcePath ShaderBuildCacheLocation ()
 
ResourcePath ShaderParentCacheLocation ()
 
ResourcePath SpvCacheLocation ()
 
ResourcePath ReflCacheLocation ()
 
ResourcePath TxtCacheLocation ()
 
ResourcePath SpvTargetName (const Str< 256 > &fileName)
 
ResourcePath ReflTargetName (const Str< 256 > &fileName)
 
bool ValidateCacheLocked (const ShaderProgram::LoadData::ShaderCacheType type, const Str< 256 > &sourceFileName, const Str< 256 > &fileName)
 
bool DeleteCacheLocked (const ShaderProgram::LoadData::ShaderCacheType type, const Str< 256 > &fileName)
 
bool DeleteCache (const ShaderProgram::LoadData::ShaderCacheType type, const Str< 256 > &fileName)
 

Variables

U64 s_newestShaderAtomWriteTime = 0u
 Used to detect modified shader atoms to validate/invalidate shader cache.
 
bool s_useShaderCache = true
 
bool s_targetVulkan = false
 
U8 s_textureSlot = 0u
 
U8 s_imageSlot = 0u
 
U8 s_bufferSlot = 0u
 
U8 s_uboStartOffset = 14u
 

Function Documentation

◆ DeleteCache()

bool Divide::anonymous_namespace{ShaderProgram.cpp}::DeleteCache ( const ShaderProgram::LoadData::ShaderCacheType  type,
const Str< 256 > &  fileName 
)

Definition at line 365 of file ShaderProgram.cpp.

◆ DeleteCacheLocked()

bool Divide::anonymous_namespace{ShaderProgram.cpp}::DeleteCacheLocked ( const ShaderProgram::LoadData::ShaderCacheType  type,
const Str< 256 > &  fileName 
)

Definition at line 351 of file ShaderProgram.cpp.

◆ ReflCacheLocation()

ResourcePath Divide::anonymous_namespace{ShaderProgram.cpp}::ReflCacheLocation ( )

Definition at line 294 of file ShaderProgram.cpp.

◆ ReflTargetName()

ResourcePath Divide::anonymous_namespace{ShaderProgram.cpp}::ReflTargetName ( const Str< 256 > &  fileName)

Definition at line 309 of file ShaderProgram.cpp.

◆ RefreshBindingSlots()

void Divide::anonymous_namespace{ShaderProgram.cpp}::RefreshBindingSlots ( )

Definition at line 267 of file ShaderProgram.cpp.

◆ ShaderAPILocation()

ResourcePath Divide::anonymous_namespace{ShaderProgram.cpp}::ShaderAPILocation ( )

Definition at line 274 of file ShaderProgram.cpp.

◆ ShaderBuildCacheLocation()

ResourcePath Divide::anonymous_namespace{ShaderProgram.cpp}::ShaderBuildCacheLocation ( )

Definition at line 279 of file ShaderProgram.cpp.

◆ ShaderParentCacheLocation()

ResourcePath Divide::anonymous_namespace{ShaderProgram.cpp}::ShaderParentCacheLocation ( )

Definition at line 284 of file ShaderProgram.cpp.

◆ SpvCacheLocation()

ResourcePath Divide::anonymous_namespace{ShaderProgram.cpp}::SpvCacheLocation ( )

Definition at line 289 of file ShaderProgram.cpp.

◆ SpvTargetName()

ResourcePath Divide::anonymous_namespace{ShaderProgram.cpp}::SpvTargetName ( const Str< 256 > &  fileName)

Definition at line 304 of file ShaderProgram.cpp.

◆ TxtCacheLocation()

ResourcePath Divide::anonymous_namespace{ShaderProgram.cpp}::TxtCacheLocation ( )

Definition at line 299 of file ShaderProgram.cpp.

◆ ValidateCacheLocked()

bool Divide::anonymous_namespace{ShaderProgram.cpp}::ValidateCacheLocked ( const ShaderProgram::LoadData::ShaderCacheType  type,
const Str< 256 > &  sourceFileName,
const Str< 256 > &  fileName 
)

Definition at line 314 of file ShaderProgram.cpp.

Variable Documentation

◆ s_bufferSlot

U8 Divide::anonymous_namespace{ShaderProgram.cpp}::s_bufferSlot = 0u

Definition at line 264 of file ShaderProgram.cpp.

◆ s_imageSlot

U8 Divide::anonymous_namespace{ShaderProgram.cpp}::s_imageSlot = 0u

Definition at line 263 of file ShaderProgram.cpp.

◆ s_newestShaderAtomWriteTime

U64 Divide::anonymous_namespace{ShaderProgram.cpp}::s_newestShaderAtomWriteTime = 0u

Used to detect modified shader atoms to validate/invalidate shader cache.

Definition at line 258 of file ShaderProgram.cpp.

◆ s_targetVulkan

bool Divide::anonymous_namespace{ShaderProgram.cpp}::s_targetVulkan = false

Definition at line 260 of file ShaderProgram.cpp.

◆ s_textureSlot

U8 Divide::anonymous_namespace{ShaderProgram.cpp}::s_textureSlot = 0u

Definition at line 262 of file ShaderProgram.cpp.

◆ s_uboStartOffset

U8 Divide::anonymous_namespace{ShaderProgram.cpp}::s_uboStartOffset = 14u

Definition at line 265 of file ShaderProgram.cpp.

◆ s_useShaderCache

bool Divide::anonymous_namespace{ShaderProgram.cpp}::s_useShaderCache = true

Definition at line 259 of file ShaderProgram.cpp.