Nebula
Loading...
Searching...
No Matches
shaderloader.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
13
14namespace CoreGraphics
15{
16void CmdSetShaderProgram(const CoreGraphics::CmdBufferId, const CoreGraphics::ShaderProgramId, bool);
18{
20
21public:
22
26 virtual ~ShaderLoader();
27
28
29private:
31 friend class VkPipelineDatabase;
32 friend void CoreGraphics::CmdSetShaderProgram(const CoreGraphics::CmdBufferId, const CoreGraphics::ShaderProgramId, bool);
33
35 Resources::ResourceUnknownId InitializeResource(Ids::Id32 entry, const Util::StringAtom& tag, const Ptr<IO::Stream>& stream, bool immediate = false) override;
37 Resources::Resource::State ReloadFromStream(const Resources::ResourceId id, const Ptr<IO::Stream>& stream) override;
38
40 void Unload(const Resources::ResourceId id) override;
41
42
43 //__ResourceAllocator(VkShader);
44
45};
46
47}
48
Definition shaderloader.h:18
Resources::Resource::State ReloadFromStream(const Resources::ResourceId id, const Ptr< IO::Stream > &stream) override
reload shader
Definition shaderloader.cc:64
ShaderLoader()
constructor
Definition shaderloader.cc:18
friend class VkVertexSignatureCache
Definition shaderloader.h:30
Resources::ResourceUnknownId InitializeResource(Ids::Id32 entry, const Util::StringAtom &tag, const Ptr< IO::Stream > &stream, bool immediate=false) override
load shader
Definition shaderloader.cc:36
virtual ~ShaderLoader()
destructor
Definition shaderloader.cc:27
__DeclareClass(ShaderLoader)
void Unload(const Resources::ResourceId id) override
unload shader
Definition shaderloader.cc:89
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
State
Definition resource.h:26
Definition resourceloader.h:58
A StringAtom.
Definition stringatom.h:22
Definition vkpipelinedatabase.h:34
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
void CmdSetShaderProgram(const CmdBufferId id, const CoreGraphics::ShaderProgramId pro, bool bindGlobals=true)
Set shader program.
Definition vkcommandbuffer.cc:384
uint32_t Id32
Definition id.h:138
Definition commandbuffer.h:148
Definition resourceid.h:37