LeviLamina
Loading...
Searching...
No Matches
Encoder.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/bgfx/access/Enum.h"
7#include "mc/external/bgfx/texture_format/Enum.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace bgfx { struct AccelerationStructureHandle; }
12namespace bgfx { struct DynamicIndexBufferHandle; }
13namespace bgfx { struct DynamicVertexBufferHandle; }
14namespace bgfx { struct IndexBufferHandle; }
15namespace bgfx { struct IndirectBufferHandle; }
16namespace bgfx { struct InstanceDataBuffer; }
17namespace bgfx { struct ProgramHandle; }
18namespace bgfx { struct RayTracingConfiguration; }
19namespace bgfx { struct RayTracingResources; }
20namespace bgfx { struct ShaderBufferHandle; }
21namespace bgfx { struct TextureHandle; }
22namespace bgfx { struct UniformHandle; }
23namespace bgfx { struct VertexBufferHandle; }
24namespace bgfx { struct VertexDeclHandle; }
25// clang-format on
26
27namespace bgfx {
28
29struct Encoder {
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI void blit(
34 ushort _id,
35 ::bgfx::TextureHandle _dst,
36 uchar _dstMip,
37 ushort _dstX,
38 ushort _dstY,
39 ushort _dstZ,
40 ::bgfx::TextureHandle _src,
41 uchar _srcMip,
42 ushort _srcX,
43 ushort _srcY,
44 ushort _srcZ,
45 ushort _width,
46 ushort _height,
47 ushort _depth
48 );
49
50 MCAPI void discard();
51
52 MCAPI void dispatch(ushort _id, ::bgfx::ProgramHandle _program, uint _numX, uint _numY, uint _numZ, uchar _flags);
53
54 MCAPI void doAllRayTracing(
55 ushort _id,
56 ::bgfx::RayTracingConfiguration const& rtConfig,
57 ::bgfx::RayTracingResources const& rtResources,
58 uint _width,
59 uint _height
60 );
61
62 MCAPI void setBuffer(uchar _stage, ::bgfx::UniformHandle _sampler, ::bgfx::AccelerationStructureHandle _handle);
63
64 MCAPI void
65 setBuffer(uchar _stage, ::bgfx::DynamicIndexBufferHandle _handle, ::bgfx::Access::Enum _access, uint _offset);
66
67 MCAPI void setBuffer(uchar _stage, ::bgfx::IndexBufferHandle _handle, ::bgfx::Access::Enum _access, uint _offset);
68
69 MCAPI void setBuffer(uchar _stage, ::bgfx::VertexBufferHandle _handle, ::bgfx::Access::Enum _access, uint _offset);
70
71 MCAPI void
72 setBuffer(uchar _stage, ::bgfx::IndirectBufferHandle _handle, ::bgfx::Access::Enum _access, uint _offset);
73
74 MCAPI void
75 setBuffer(uchar _stage, ::bgfx::DynamicVertexBufferHandle _handle, ::bgfx::Access::Enum _access, uint _offset);
76
77 MCAPI void setBuffer(
78 uchar _stage,
79 ::bgfx::UniformHandle _sampler,
80 ::bgfx::ShaderBufferHandle _handle,
81 ::bgfx::Access::Enum _access,
82 uint _offset
83 );
84
85 MCAPI void setBuffersAsRanged(
86 uchar _stage,
87 ::bgfx::ShaderBufferHandle const* _shaderBufferHandles,
88 uint64 _shaderBufferHandleStride,
89 ::bgfx::Access::Enum const* _access,
90 uint64 _accessStride,
91 uint const* _bufferOffset,
92 uint64 _bufferOffsetStride,
93 uint64 _count,
94 uint _arrayIndexOffset
95 );
96
97 MCAPI void setDepthBias(int _biasConst, float _biasSlope, float _biasClamp);
98
99 MCAPI void setImage(
100 uchar _stage,
101 ::bgfx::TextureHandle _handle,
102 uchar _mip,
103 ::bgfx::Access::Enum _access,
104 ::bgfx::TextureFormat::Enum _format
105 );
106
107 MCAPI void setImagesAsRanged(
108 uchar _stage,
109 ::bgfx::TextureHandle const* _textureHandles,
110 uint64 _textureHandleStride,
111 uchar const* _mips,
112 uint64 _mipsStride,
113 ::bgfx::Access::Enum const* _access,
114 uint64 _accessStride,
115 ::bgfx::TextureFormat::Enum const* _format,
116 uint64 _formatStride,
117 uint64 _count,
118 uint _offset
119 );
120
121 MCAPI void
122 setIndexBuffer(::bgfx::DynamicIndexBufferHandle _handle, uint _firstIndex, uint _numIndices, uint _indexSize);
123
124 MCAPI void setIndexBuffer(::bgfx::IndexBufferHandle _handle, uint _firstIndex, uint _numIndices, uint _indexSize);
125
126 MCFOLD void setInstanceCount(uint _numInstances);
127
128 MCAPI void setInstanceDataBuffer(::bgfx::InstanceDataBuffer const* _idb, uint _start, uint _num);
129
130 MCAPI void setMarker(char const* _marker);
131
132 MCAPI void setSamplerState(uchar _stage, uint _flags);
133
134 MCAPI ushort setScissor(ushort _x, ushort _y, ushort _width, ushort _height);
135
136 MCAPI void setState(uint64 _state, uint _rgba);
137
138 MCAPI void setStencil(uint _fstencil, uint _bstencil);
139
140 MCAPI void setTexture(uchar _stage, ::bgfx::UniformHandle _sampler, ::bgfx::TextureHandle _handle, uint _flags);
141
142 MCAPI void setTexturesAsRanged(
143 uchar _stage,
144 ::bgfx::TextureHandle const* _textureHandles,
145 uint64 _textureHandleStride,
146 uint const* _flags,
147 uint64 _flagStride,
148 uint64 _count,
149 uint _offset
150 );
151
152 MCAPI uint setTransform(void const* _mtx, ushort _num);
153
154 MCAPI void setUniform(::bgfx::UniformHandle _handle, void const* _value, ushort _num);
155
156 MCAPI void setVertexBuffer(uchar _stream, ::bgfx::VertexBufferHandle _handle, uint _startVertex, uint _numVertices);
157
158 MCAPI void setVertexBuffer(
159 uchar _stream,
160 ::bgfx::DynamicVertexBufferHandle _handle,
161 uint _bytesOffset,
162 uint _numVertices,
163 ::bgfx::VertexDeclHandle _decl,
164 uint _declStride
165 );
166
167 MCAPI void submit(ushort _id, ::bgfx::ProgramHandle _program, int _depth, bool _preserveState);
168
169 MCAPI void touch(ushort _id);
170 // NOLINTEND
171};
172
173} // namespace bgfx
Definition AccelerationStructureHandle.h:7
Definition DynamicIndexBufferHandle.h:7
Definition DynamicVertexBufferHandle.h:7
Definition Encoder.h:7
Definition IndexBufferHandle.h:7
Definition IndirectBufferHandle.h:7
Definition InstanceDataBuffer.h:7
Definition ProgramHandle.h:7
Definition RayTracingConfiguration.h:7
Definition RayTracingResources.h:7
Definition ShaderBufferHandle.h:7
Definition TextureHandle.h:7
Definition UniformHandle.h:7
Definition VertexBufferHandle.h:7
Definition VertexDeclHandle.h:7