source2sdk/sdk/rendersystemdx11.hpp

122 lines
2.3 KiB
C++
Raw Normal View History

2023-03-15 15:20:35 +00:00
#pragma once
#include <cstdint>
#include "!GlobalTypes.hpp"
///////////////////////////////////////////
// Binary: rendersystemdx11.dll
2023-03-15 17:25:55 +00:00
// Class Count: 10
// Enum Count: 0
2023-03-15 15:20:35 +00:00
///////////////////////////////////////////
2023-03-15 17:25:55 +00:00
// Aligment: 6
// Size: 12
struct TextureDesc_t
2023-03-15 15:20:35 +00:00
{
2023-03-15 17:25:55 +00:00
public:
uint16_t m_nWidth; // 0x0
uint16_t m_nHeight; // 0x2
uint16_t m_nDepth; // 0x4
int8_t m_nImageFormat; // 0x6
uint8_t m_nNumMipLevels; // 0x7
int32_t m_nPicmip0Res; // 0x8
2023-03-15 15:20:35 +00:00
};
2023-03-15 17:25:55 +00:00
// Aligment: 7
// Size: 1404
struct TextureHeader_t : public TextureDesc_t
2023-03-15 15:20:35 +00:00
{
2023-03-15 17:25:55 +00:00
public:
uint16_t m_nMultisampleType; // 0xc
uint16_t m_nFlags; // 0xe
Vector4D m_Reflectivity; // 0x10
CResourcePointer< Sheet_t > m_pSheet; // 0x20
int32_t m_nSheetSize; // 0x24
uint8[1360] m_fallbackTextureBits; // 0x28
int32_t m_nPicmip0Res; // 0x578
2023-03-15 15:20:35 +00:00
};
2023-03-15 17:25:55 +00:00
// Aligment: 2
// Size: 8
struct SequenceFloatParam_t
2023-03-15 15:20:35 +00:00
{
2023-03-15 17:25:55 +00:00
public:
CResourceString m_name; // 0x0
float m_value; // 0x4
2023-03-15 15:20:35 +00:00
};
2023-03-15 17:25:55 +00:00
// Aligment: 9
// Size: 32
struct SheetSequence_t
2023-03-15 15:20:35 +00:00
{
2023-03-15 17:25:55 +00:00
public:
uint32_t m_nId; // 0x0
bool m_bClamp; // 0x4
bool m_bAlphaCrop; // 0x5
bool m_bNoColor; // 0x6
bool m_bNoAlpha; // 0x7
CResourceArray< SheetSequenceFrame_t > m_Frames; // 0x8
float m_flTotalTime; // 0x10
CResourceString m_name; // 0x14
CResourceArray< SequenceFloatParam_t > m_floatParams; // 0x18
2023-03-15 15:20:35 +00:00
};
2023-03-15 17:25:55 +00:00
// Aligment: 2
// Size: 12
struct SheetSequenceFrame_t
{
public:
float m_flDisplayTime; // 0x0
CResourceArray< SheetFrameImage_t > m_Images; // 0x4
};
// Aligment: 2
// Size: 32
struct SheetFrameImage_t
{
public:
Vector2D[2] uvCropped; // 0x0
Vector2D[2] uvUncropped; // 0x10
};
// Aligment: 1
2023-03-15 15:20:35 +00:00
// Size: 8
2023-03-15 17:25:55 +00:00
struct Sheet_t
2023-03-15 15:20:35 +00:00
{
2023-03-15 17:25:55 +00:00
public:
CResourceArray< SheetSequence_t > m_Sequences; // 0x0
2023-03-15 15:20:35 +00:00
};
// Aligment: 7
// Size: 56
struct RenderInputLayoutField_t
{
public:
uint8[32] m_pSemanticName; // 0x0
int32_t m_nSemanticIndex; // 0x20
uint32_t m_Format; // 0x24
int32_t m_nOffset; // 0x28
int32_t m_nSlot; // 0x2c
RenderSlotType_t m_nSlotType; // 0x30
int32_t m_nInstanceStepRate; // 0x34
};
// Aligment: 4
// Size: 196
struct VsInputSignatureElement_t
{
public:
char[64] m_pName; // 0x0
char[64] m_pSemantic; // 0x40
char[64] m_pD3DSemanticName; // 0x80
int32_t m_nD3DSemanticIndex; // 0xc0
};
// Aligment: 1
// Size: 24
struct VsInputSignature_t
{
public:
CUtlVector< VsInputSignatureElement_t > m_elems; // 0x0
};