Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
shaderloader.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
12
#include "
resources/resourceloader.h
"
13
14
namespace
CoreGraphics
15
{
16
void
CmdSetShaderProgram
(
const
CoreGraphics::CmdBufferId
,
const
CoreGraphics::ShaderProgramId,
bool
);
17
class
ShaderLoader
:
public
Resources::ResourceLoader
18
{
19
__DeclareClass
(
ShaderLoader
);
20
21
public
:
22
24
ShaderLoader
();
26
virtual
~ShaderLoader
();
27
28
29
private
:
30
friend
class
VkVertexSignatureCache
;
31
friend
class
VkPipelineDatabase
;
32
friend
void
CoreGraphics::CmdSetShaderProgram
(
const
CoreGraphics::CmdBufferId
,
const
CoreGraphics::ShaderProgramId,
bool
);
33
35
void
Unload
(
const
Resources::ResourceId
id
)
override
;
36
37
38
//__ResourceAllocator(VkShader);
39
40
};
41
42
}
43
CoreGraphics::ShaderLoader::ShaderLoader
ShaderLoader()
constructor
Definition
shaderloader.cc:18
CoreGraphics::ShaderLoader::VkPipelineDatabase
friend class VkPipelineDatabase
Definition
shaderloader.h:31
CoreGraphics::ShaderLoader::VkVertexSignatureCache
friend class VkVertexSignatureCache
Definition
shaderloader.h:30
CoreGraphics::ShaderLoader::~ShaderLoader
virtual ~ShaderLoader()
destructor
Definition
shaderloader.cc:27
CoreGraphics::ShaderLoader::__DeclareClass
__DeclareClass(ShaderLoader)
CoreGraphics::ShaderLoader::Unload
void Unload(const Resources::ResourceId id) override
unload shader
Definition
shaderloader.cc:36
Resources::ResourceLoader
Definition
resourceloader.h:60
CoreGraphics
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition
accelerationstructure.h:24
CoreGraphics::CmdSetShaderProgram
void CmdSetShaderProgram(const CmdBufferId id, const CoreGraphics::ShaderProgramId pro, const CoreGraphics::QueueType queue, bool bindGlobals=true)
Set shader program.
Definition
vkcommandbuffer.cc:451
resourceloader.h
CoreGraphics::CmdBufferId
Definition
commandbuffer.h:176
code
render
coregraphics
shaderloader.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.