Cogs.Core
|
Public Member Functions | |
void | initialize (GraphicsDeviceWebGPU *device) |
RenderPipelineHandle | loadRenderPipeline (EffectHandle effect, InputLayoutHandle inputLayoutHandle, PrimitiveType::EPrimitiveType primitiveType, RasterizerStateHandle rasterizeStateHandle, DepthStencilStateHandle depthStencilStateHandle, BlendStateHandle blendStateHandle, RenderTargetHandle renderTargetHandle, DepthStencilHandle depthStencilHandle) |
ComputePipelineHandle | loadComputePipeline (EffectHandle effect) |
virtual void | releaseRenderPipeline (RenderPipelineHandle) override |
virtual void | releaseComputePipeline (ComputePipelineHandle) override |
virtual void | releaseResources () override |
virtual void | releaseRenderPipeline (RenderPipelineHandle psoHandle)=0 |
virtual void | releaseComputePipeline (ComputePipelineHandle psoHandle)=0 |
virtual void | releaseResources ()=0 |
Public Attributes | |
GraphicsDeviceWebGPU * | graphics_device = nullptr |
std::unordered_map< size_t, RenderPipelineHandle > | renderPipelineHashMap |
SafeResourceMap< RenderPipelineHandle, RenderPipelineWebGPU > | renderPipeline |
std::unordered_map< size_t, ComputePipelineHandle > | computePipelineHashMap |
SafeResourceMap< ComputePipelineHandle, ComputePipelineWebGPU > | computePipeline |
Definition at line 37 of file PipelineStatesWebGPU.h.
void Cogs::PipelineStatesWebGPU::initialize | ( | GraphicsDeviceWebGPU * | device | ) |
Definition at line 61 of file PipelineStatesWebGPU.cpp.
ComputePipelineHandle Cogs::PipelineStatesWebGPU::loadComputePipeline | ( | EffectHandle | effect | ) |
Definition at line 330 of file PipelineStatesWebGPU.cpp.
RenderPipelineHandle Cogs::PipelineStatesWebGPU::loadRenderPipeline | ( | EffectHandle | effect, |
InputLayoutHandle | inputLayoutHandle, | ||
PrimitiveType::EPrimitiveType | primitiveType, | ||
RasterizerStateHandle | rasterizeStateHandle, | ||
DepthStencilStateHandle | depthStencilStateHandle, | ||
BlendStateHandle | blendStateHandle, | ||
RenderTargetHandle | renderTargetHandle, | ||
DepthStencilHandle | depthStencilHandle | ||
) |
Definition at line 66 of file PipelineStatesWebGPU.cpp.
|
inlineoverridevirtual |
Implements Cogs::IPipelineStates.
Definition at line 52 of file PipelineStatesWebGPU.h.
|
inlineoverridevirtual |
Implements Cogs::IPipelineStates.
Definition at line 51 of file PipelineStatesWebGPU.h.
|
inlineoverridevirtual |
Implements Cogs::IPipelineStates.
Definition at line 53 of file PipelineStatesWebGPU.h.
SafeResourceMap<ComputePipelineHandle, ComputePipelineWebGPU> Cogs::PipelineStatesWebGPU::computePipeline |
Definition at line 61 of file PipelineStatesWebGPU.h.
std::unordered_map<size_t, ComputePipelineHandle> Cogs::PipelineStatesWebGPU::computePipelineHashMap |
Definition at line 60 of file PipelineStatesWebGPU.h.
GraphicsDeviceWebGPU* Cogs::PipelineStatesWebGPU::graphics_device = nullptr |
Definition at line 55 of file PipelineStatesWebGPU.h.
SafeResourceMap<RenderPipelineHandle, RenderPipelineWebGPU> Cogs::PipelineStatesWebGPU::renderPipeline |
Definition at line 58 of file PipelineStatesWebGPU.h.
std::unordered_map<size_t, RenderPipelineHandle> Cogs::PipelineStatesWebGPU::renderPipelineHashMap |
Definition at line 57 of file PipelineStatesWebGPU.h.