LeviLamina
Loading...
Searching...
No Matches
TextureDescription.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Color.h"
7#include "mc/deps/core_graphics/TextureDescription.h"
8#include "mc/deps/renderer/hal/SampleDescription.h"
9#include "mc/deps/renderer/hal/enums/BindFlagsBit.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace cg { struct ImageDescription; }
14// clang-format on
15
16namespace mce {
17
18struct TextureDescription : public ::cg::TextureDescription {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<4, 8, ::mce::SampleDescription> mSampleDescription;
23 ::ll::TypedStorage<4, 16, ::mce::Color> mClearColor;
24 ::ll::TypedStorage<4, 4, float> mOptimizedClearDepth;
25 ::ll::TypedStorage<1, 1, uchar> mOptimizedClearStencil;
26 ::ll::TypedStorage<4, 4, ::mce::BindFlagsBit> mBindFlags;
27 ::ll::TypedStorage<1, 1, bool> mIsStaging;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 TextureDescription();
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCAPI TextureDescription(
38 ::cg::ImageDescription const& imageDescription,
39 ::mce::BindFlagsBit bindFlag,
40 ::mce::SampleDescription const& sampleDesc
41 );
42
43 MCAPI uint getMipHeight(uint mipLevel) const;
44
45 MCAPI uint getMipWidth(uint mipLevel) const;
46 // NOLINTEND
47
48public:
49 // static functions
50 // NOLINTBEGIN
51 MCAPI static ::mce::TextureDescription getDefaultTextureDescription(int w, int h);
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCAPI void* $ctor(
58 ::cg::ImageDescription const& imageDescription,
59 ::mce::BindFlagsBit bindFlag,
60 ::mce::SampleDescription const& sampleDesc
61 );
62 // NOLINTEND
63};
64
65} // namespace mce
Definition ImageDescription.h:20
Definition TextureDescription.h:7