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 ResourceInitOutput InitializeResource(const ResourceLoadJob& job, const Ptr<IO::Stream>& stream) 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:66
ShaderLoader()
constructor
Definition shaderloader.cc:18
friend class VkVertexSignatureCache
Definition shaderloader.h:30
ResourceInitOutput InitializeResource(const ResourceLoadJob &job, const Ptr< IO::Stream > &stream) 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:91
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:60
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:440
Definition commandbuffer.h:155
Definition resourceloader.h:140
Definition resourceloader.h:164