2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-03-05 12:33:02 +00:00

chore: add d3d11 enum types

This commit is contained in:
Jan
2024-02-24 09:58:34 +01:00
parent d2420617f0
commit ad3f019dff
2 changed files with 348 additions and 36 deletions

View File

@@ -33,6 +33,15 @@ namespace d3d11
unsigned m_flags;
};
enum class ConstantBufferType
{
UNKNOWN,
CBUFFER,
TBUFFER,
INTERFACE_POINTERS,
RESOURCE_BIND_INFO,
};
class ConstantBuffer
{
public:
@@ -46,10 +55,48 @@ namespace d3d11
std::string m_name;
unsigned m_size;
unsigned m_flags;
unsigned m_type;
ConstantBufferType m_type;
std::vector<ConstantBufferVariable> m_variables;
};
enum class BoundResourceType
{
UNKNOWN,
CBUFFER,
TBUFFER,
TEXTURE,
SAMPLER
};
enum class BoundResourceReturnType
{
UNKNOWN,
UNORM,
SNORM,
SINT,
UINT,
FLOAT,
MIXED,
DOUBLE,
CONTINUED,
};
enum class BoundResourceDimension
{
UNKNOWN,
BUFFER,
TEXTURE_1D,
TEXTURE_1D_ARRAY,
TEXTURE_2D,
TEXTURE_2D_ARRAY,
TEXTURE_2D_MS,
TEXTURE_2D_MS_ARRAY,
TEXTURE_3D,
TEXTURE_CUBE,
TEXTURE_CUBE_ARRAY,
BUFFER_EX,
};
class BoundResource
{
public:
@@ -61,9 +108,9 @@ namespace d3d11
BoundResource& operator=(BoundResource&& other) noexcept = default;
std::string m_name;
unsigned m_type;
unsigned m_return_type;
unsigned m_dimension;
BoundResourceType m_type;
BoundResourceReturnType m_return_type;
BoundResourceDimension m_dimension;
unsigned m_num_samples;
unsigned m_bind_point;
unsigned m_bind_count;