|
Cogs.Core
|
Public Member Functions | |
| void | updateBindGroupDescHashes () |
| Refresh bindGroupDescHash. Call once bindGroupSetDescription is final. | |
| size_t | hash (size_t base) const |
Public Member Functions inherited from Cogs::Effect | |
| Effect & | operator= (const Effect &other) |
| Effect & | operator= (Effect &&other) noexcept |
| void | buildSignature () |
Public Attributes | |
| WGPUShaderModule | vs_module |
| WGPUShaderModule | fs_module |
| WGPUShaderModule | cs_module |
| std::string | vs_entry |
| std::string | fs_entry |
| std::string | cs_entry |
| std::string | name |
| size_t | num_bindings |
| size_t | num_attribs |
| WebGPUConstantBufferBinding | constantBufferBindings [maxConstantBuffers] |
| SemanticSlotBinding | semanticSlotBindings [maxVertexAttribs] |
| BindGroupSetDescription | bindGroupSetDescription |
| size_t | bindGroupDescHash [MaxBindGroups] = {} |
| Hash of each entry in bindGroupSetDescription.groups, letting bind group compatibility be tested with a single integer compare per draw call. | |
Public Attributes inherited from Cogs::Effect | |
| EffectSignature | signature |
| Shader | shaders [ShaderType::NumShaderSlots] |
| std::unordered_map< size_t, EffectVariable > | effectVariables |
| Shader & | vertexShader |
| Shader & | hullShader |
| Shader & | domainShader |
| Shader & | geometryShader |
| Shader & | pixelShader |
| Shader & | computeShader |
Static Public Attributes | |
| static const size_t | maxTexUnits = 128 |
| static const size_t | maxConstantBuffers = 128 |
| static const size_t | maxVertexAttribs = 32 |
Definition at line 32 of file EffectsWebGPU.h.
|
inline |
Definition at line 63 of file EffectsWebGPU.h.
|
inline |
Refresh bindGroupDescHash. Call once bindGroupSetDescription is final.
Definition at line 56 of file EffectsWebGPU.h.
References bindGroupDescHash.
Referenced by Cogs::EffectsWebGPU::loadComputeEffect().
| size_t Cogs::EffectWebGPU::bindGroupDescHash[MaxBindGroups] = {} |
Hash of each entry in bindGroupSetDescription.groups, letting bind group compatibility be tested with a single integer compare per draw call.
Definition at line 53 of file EffectsWebGPU.h.
Referenced by Cogs::EffectsWebGPU::getBindGroupDescHash(), and updateBindGroupDescHashes().
| BindGroupSetDescription Cogs::EffectWebGPU::bindGroupSetDescription |
Definition at line 48 of file EffectsWebGPU.h.
| WebGPUConstantBufferBinding Cogs::EffectWebGPU::constantBufferBindings[maxConstantBuffers] |
Definition at line 46 of file EffectsWebGPU.h.
| std::string Cogs::EffectWebGPU::cs_entry |
Definition at line 42 of file EffectsWebGPU.h.
| WGPUShaderModule Cogs::EffectWebGPU::cs_module |
Definition at line 39 of file EffectsWebGPU.h.
| std::string Cogs::EffectWebGPU::fs_entry |
Definition at line 41 of file EffectsWebGPU.h.
| WGPUShaderModule Cogs::EffectWebGPU::fs_module |
Definition at line 38 of file EffectsWebGPU.h.
|
static |
Definition at line 35 of file EffectsWebGPU.h.
|
static |
Definition at line 34 of file EffectsWebGPU.h.
|
static |
Definition at line 36 of file EffectsWebGPU.h.
| std::string Cogs::EffectWebGPU::name |
Definition at line 43 of file EffectsWebGPU.h.
| size_t Cogs::EffectWebGPU::num_attribs |
Definition at line 45 of file EffectsWebGPU.h.
| size_t Cogs::EffectWebGPU::num_bindings |
Definition at line 44 of file EffectsWebGPU.h.
| SemanticSlotBinding Cogs::EffectWebGPU::semanticSlotBindings[maxVertexAttribs] |
Definition at line 47 of file EffectsWebGPU.h.
| std::string Cogs::EffectWebGPU::vs_entry |
Definition at line 40 of file EffectsWebGPU.h.
| WGPUShaderModule Cogs::EffectWebGPU::vs_module |
Definition at line 37 of file EffectsWebGPU.h.