Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
framescripts.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
9
//------------------------------------------------------------------------------
10
#include "
coregraphics/commandbuffer.h
"
11
#include "
graphics/graphicsentity.h
"
12
#include "materials/gpulang/materialtemplatesgpulang.h"
13
14
namespace
Frame
15
{
16
17
struct
TextureExport
18
{
19
uint
index
;
20
CoreGraphics::TextureId
tex
;
21
CoreGraphics::PipelineStage
stage
;
22
};
23
24
struct
TextureImport
25
{
26
CoreGraphics::TextureId
tex
;
27
CoreGraphics::PipelineStage
stage
=
CoreGraphics::PipelineStage::AllShadersRead
;
28
29
explicit
TextureImport
(
const
CoreGraphics::TextureId
id
)
30
{
31
this->tex = id;
32
}
33
34
static
TextureImport
FromExport
(
const
TextureExport
& exp)
35
{
36
auto
ret =
TextureImport
(exp.tex);
37
ret.stage = exp.stage;
38
return
ret;
39
}
40
};
41
43
void
DrawBatch
(
const
CoreGraphics::CmdBufferId
cmdBuf, MaterialTemplatesGPULang::BatchGroup batch,
const
Graphics::GraphicsEntityId
id
,
const
IndexT
bufferIndex);
45
void
DrawBatch
(
const
CoreGraphics::CmdBufferId
cmdBuf, MaterialTemplatesGPULang::BatchGroup batch,
const
Graphics::GraphicsEntityId
id
,
const
SizeT
numInstances,
const
IndexT
baseInstance,
const
IndexT
bufferIndex);
46
47
}
// namespace Frame
commandbuffer.h
graphicsentity.h
CoreGraphics::PipelineStage
PipelineStage
Definition
config.h:192
CoreGraphics::PipelineStage::AllShadersRead
@ AllShadersRead
Definition
config.h:217
Frame
ImGUI debug interface for inspecting frame scripts.
Definition
shaderserverbase.h:52
Frame::DrawBatch
void DrawBatch(const CoreGraphics::CmdBufferId cmdBuf, MaterialTemplatesGPULang::BatchGroup batch, const Graphics::GraphicsEntityId id, const IndexT bufferIndex)
Draw.
Definition
framescripts.cc:17
CoreGraphics::CmdBufferId
Definition
commandbuffer.h:176
CoreGraphics::TextureId
texture type
Definition
texture.h:25
Frame::TextureExport
Definition
framescripts.h:18
Frame::TextureExport::stage
CoreGraphics::PipelineStage stage
Definition
framescripts.h:21
Frame::TextureExport::index
uint index
Definition
framescripts.h:19
Frame::TextureExport::tex
CoreGraphics::TextureId tex
Definition
framescripts.h:20
Frame::TextureImport::FromExport
static TextureImport FromExport(const TextureExport &exp)
Definition
framescripts.h:34
Frame::TextureImport::TextureImport
TextureImport(const CoreGraphics::TextureId id)
Definition
framescripts.h:29
Frame::TextureImport::stage
CoreGraphics::PipelineStage stage
Definition
framescripts.h:27
Frame::TextureImport::tex
CoreGraphics::TextureId tex
Definition
framescripts.h:26
Graphics::GraphicsEntityId
The graphics entity is only an Id, to which we can attach GraphicsContexts.
Definition
graphicsentity.h:16
SizeT
int SizeT
Definition
types.h:42
uint
unsigned int uint
Definition
types.h:33
IndexT
int IndexT
Definition
types.h:41
code
render
framescripts
framescripts.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.