LeviLamina
Loading...
Searching...
No Matches
ShaderConstants.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/minecraft_renderer/constantbuffers/ConstantBufferConstantsBase.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace mce { class RenderContext; }
11namespace mce { class ShaderConstantFloat1; }
12namespace mce { class ShaderConstantFloat3; }
13namespace mce { class ShaderConstantFloat4; }
14namespace mce { class ShaderConstantInt1; }
15namespace mce { class ShaderConstantMatrix4x4; }
16// clang-format on
17
18namespace mce {
19
20class ShaderConstants : public ::mce::ConstantBufferConstantsBase {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 8, ::mce::ShaderConstantFloat4*> CURRENT_COLOR;
25 ::ll::TypedStorage<8, 8, ::mce::ShaderConstantFloat4*> DARKEN;
26 ::ll::TypedStorage<8, 8, ::mce::ShaderConstantFloat3*> TEXTURE_DIMENSIONS;
27 ::ll::TypedStorage<8, 8, ::mce::ShaderConstantFloat1*> HUD_OPACITY;
28 ::ll::TypedStorage<8, 8, ::mce::ShaderConstantMatrix4x4*> UV_TRANSFORM;
29 ::ll::TypedStorage<8, 8, ::mce::ShaderConstantInt1*> MSAA_SAMPLECOUNT;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual void init() /*override*/;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI ShaderConstants();
42
43 MCAPI void getConstants();
44
45 MCAPI float const& getHUDOpacity() const;
46
47 MCAPI void setHUDOpacity(::mce::RenderContext& renderContext, float hudOpacity);
48
49 MCAPI void setMSAASampleCount(::mce::RenderContext& renderContext, int const& value);
50
51 MCAPI void setTextureDimensions(::mce::RenderContext& renderContext, ::glm::vec3 const& textureSize);
52
53 MCAPI void setUVTransform(::mce::RenderContext& transform, ::glm::mat2x3 const&);
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCAPI void* $ctor();
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI void $init();
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
74
75} // namespace mce
Definition RenderContext.h:7
Definition ShaderConstantFloat1.h:7
Definition ShaderConstantFloat3.h:7
Definition ShaderConstantFloat4.h:7
Definition ShaderConstantInt1.h:7
Definition ShaderConstantMatrix4x4.h:7
Definition ShaderConstants.h:7
static MCAPI void ** $vftable()