3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/common/SubClientId.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/deps/ecs/EntityId.h"
9#include "mc/deps/minecraft_renderer/game/RangeIndices.h"
10#include "mc/util/Bounds.h"
11#include "mc/world/level/BlockPos.h"
12#include "mc/world/level/Tick.h"
29namespace mce {
class Mesh; }
38 enum class Bit : uchar {
41 RayTracingModeOnAtBuildStart = 2,
42 RayTracingModeOnAtBuildEnd = 3,
45 BlendCanRenderAsOpaque = 6,
52 ::ll::TypedStorage<8, 8, ::Tick> mLastChangeTick;
53 ::ll::TypedStorage<8, 8, ::Tick> mFirstChangeTick;
58 variant<::std::monostate, ::std::shared_ptr<::mce::Mesh>, ::std::shared_ptr<::RenderChunkDirectVertexData>>>
60 ::ll::TypedStorage<4, 4, ::std::bitset<7>> mFlags;
61 ::ll::TypedStorage<4, 4, float> mReadyTime;
62 ::ll::TypedStorage<4, 4, int> mBuildIterationCount;
63 ::ll::TypedStorage<4, 12, ::BlockPos> mPosition;
64 ::ll::TypedStorage<4, 12, ::BlockPos> mCenter;
65 ::ll::TypedStorage<4, 48, ::Bounds> mDataBounds;
66 ::ll::TypedStorage<4, 192, ::std::array<::RangeIndices, 24>> mUnsortedIndexRange;
67 ::ll::TypedStorage<4, 4, ::EntityId> mEntityId;
68 ::ll::TypedStorage<8, 112, ::std::array<::std::shared_ptr<::FaceSortingMetaDataBase>, 7>> mFaceSortingMetaData;
69 ::ll::TypedStorage<4, 176, ::std::array<::RangeIndices, 22>> mRenderLayerIndexRanges;
70 ::ll::TypedStorage<4, 4, float> mAverageSkyLight;
71 ::ll::TypedStorage<4, 4, ::std::bitset<6>> mInterlockBitField;
72 ::ll::TypedStorage<1, 6, ::std::array<uchar, 6>> mInterlockNeighborVersionNumbers;
73 ::ll::TypedStorage<1, 1, uchar> mBuildVersionNumber;
74 ::ll::TypedStorage<8, 24, ::std::vector<::BlockQueueEntry>> mPointLightCandidates;
75 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::IRenderChunkGarbage>> mRenderChunkGarbage;
80 RenderChunkGeometry();
85 MCAPI RenderChunkGeometry(
87 bool immediateChangeRequested,
88 int buildIterationCount,
89 double overrideReadyTime,
91 ::std::weak_ptr<::IRenderChunkGarbage> garbage,
95 MCAPI
void _convertFaceMetaDataToFaceSortingMetaData(
96 ::std::array<::std::vector<::RenderChunkQuadInfo>, 7>
const& faceMetadata,
100 MCAPI uint64 endFaceSortOnly(
101 ::mce::BufferResourceService& bufferResourceService,
102 ::RenderChunkSorter& sorter,
105 ::std::shared_ptr<::mce::IndexBufferContainer>,
106 ::std::shared_ptr<::RenderChunkDirectIndexData>>& nextIndices,
107 ::std::array<::RangeIndices, 24>& sortedIndexRange,
108 ::dragon::RenderMetadata
const& renderMetadata
111 MCAPI
void endRebuild(
112 ::RenderChunkBuilder& builder,
113 ::mce::BufferResourceService& bufferResourceService,
115 ::dragon::RenderMetadata
const& renderMetadata,
119 MCAPI
bool isEmpty()
const;
123 MCAPI ~RenderChunkGeometry();
129 MCAPI static ::std::vector<::mce::ServerTexture> createTerrainTextureList(::SubClientId player);
131 MCAPI
static void initTextures(
132 ::Bedrock::NotNullNonOwnerPtr<::MinecraftGraphics>
const& minecraftGraphics,
133 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
134 ::Bedrock::NotNullNonOwnerPtr<::TextureAtlas const>
const& atlas
141 MCAPI static ::std::unique_ptr<::TerrainTextures>& mTerrainTextures();
149 bool immediateChangeRequested,
150 int buildIterationCount,
151 double overrideReadyTime,
153 ::std::weak_ptr<::IRenderChunkGarbage> garbage,
Definition IRenderChunkGarbage.h:5
Definition MinecraftGraphics.h:5
Definition RenderChunkBuilder.h:5
Definition RenderChunkGeometry.h:5
Definition RenderChunkSorter.h:5
Definition TerrainTextures.h:5
Definition TextureAtlas.h:5
Definition IndexBufferContainer.h:7
Definition TextureGroup.h:7
Definition BlockQueueEntry.h:5
Definition RenderChunkDirectIndexData.h:5
Definition RenderChunkDirectVertexData.h:5
Definition RenderChunkQuadInfo.h:5
Definition BufferResourceService.h:7
Definition ServerTexture.h:7