Skip to content

Commit

Permalink
Update generated dump
Browse files Browse the repository at this point in the history
  • Loading branch information
Mozz3d committed Jan 22, 2025
1 parent 3af18a6 commit 2323513
Show file tree
Hide file tree
Showing 17 changed files with 381 additions and 12 deletions.
4 changes: 4 additions & 0 deletions include/RED4ext/Dump/Reflection-inl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ RED4EXT_INLINE void Dump(std::filesystem::path aOutPath, std::filesystem::path a
{
if (aInput.size() > exception.size() && aInput.starts_with(exception))
{
if(exception == "GpuWrapApi")
{
return aInput.substr(0, exception.size());
}
i = exception.size();
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/GpuWrapApi/VertexPackingPackingElement.hpp>

namespace RED4ext
{
namespace GpuWrapApi
{
struct VertexLayoutDesc
{
static constexpr const char* NAME = "GpuWrapApiVertexLayoutDesc";
static constexpr const char* ALIAS = NAME;

StaticArray<GpuWrapApi::VertexPackingPackingElement, 32> elements; // 00
StaticArray<uint8_t, 8> slotStrides; // A4
uint32_t slotMask; // B0
uint32_t hash; // B4
};
RED4EXT_ASSERT_SIZE(VertexLayoutDesc, 0xB8);
} // namespace GpuWrapApi
using GpuWrapApiVertexLayoutDesc = GpuWrapApi::VertexLayoutDesc;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
namespace RED4ext
{
namespace GpuWrapApi {
enum class VertexPackingEStreamType : uint8_t
{
ST_PerVertex = 0,
ST_PerInstance = 1,
ST_Max = 2,
ST_Invalid = 255,
};
} // namespace GpuWrapApi
using GpuWrapApiVertexPackingEStreamType = GpuWrapApi::VertexPackingEStreamType;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/GpuWrapApi/VertexPackingEStreamType.hpp>
#include <RED4ext/Scripting/Natives/Generated/GpuWrapApi/VertexPackingePackingType.hpp>
#include <RED4ext/Scripting/Natives/Generated/GpuWrapApi/VertexPackingePackingUsage.hpp>

namespace RED4ext
{
namespace GpuWrapApi
{
struct VertexPackingPackingElement
{
static constexpr const char* NAME = "GpuWrapApiVertexPackingPackingElement";
static constexpr const char* ALIAS = NAME;

GpuWrapApi::VertexPackingePackingType type; // 00
GpuWrapApi::VertexPackingePackingUsage usage; // 01
uint8_t usageIndex; // 02
uint8_t streamIndex; // 03
GpuWrapApi::VertexPackingEStreamType streamType; // 04
};
RED4EXT_ASSERT_SIZE(VertexPackingPackingElement, 0x5);
} // namespace GpuWrapApi
using GpuWrapApiVertexPackingPackingElement = GpuWrapApi::VertexPackingPackingElement;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
namespace RED4ext
{
namespace GpuWrapApi {
enum class VertexPackingePackingType : uint8_t
{
PT_Float1 = 0,
PT_Float2 = 1,
PT_Float3 = 2,
PT_Float4 = 3,
PT_Float16_2 = 4,
PT_Float16_4 = 5,
PT_UShort1 = 6,
PT_UShort2 = 7,
PT_UShort4 = 8,
PT_UShort4N = 9,
PT_Short1 = 10,
PT_Short2 = 11,
PT_Short4 = 12,
PT_Short4N = 13,
PT_UInt1 = 14,
PT_UInt2 = 15,
PT_UInt3 = 16,
PT_UInt4 = 17,
PT_Int1 = 18,
PT_Int2 = 19,
PT_Int3 = 20,
PT_Int4 = 21,
PT_Color = 22,
PT_UByte1 = 23,
PT_UByte1F = 24,
PT_UByte4 = 25,
PT_UByte4N = 26,
PT_Byte4N = 27,
PT_Dec4 = 28,
PT_Index16 = 29,
PT_Index32 = 30,
PT_Max = 31,
PT_Invalid = 255,
};
} // namespace GpuWrapApi
using GpuWrapApiVertexPackingePackingType = GpuWrapApi::VertexPackingePackingType;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
namespace RED4ext
{
namespace GpuWrapApi {
enum class VertexPackingePackingUsage : uint8_t
{
PS_SysPosition = 0,
PS_Position = 1,
PS_Normal = 2,
PS_Tangent = 3,
PS_Binormal = 4,
PS_TexCoord = 5,
PS_Color = 6,
PS_SkinIndices = 7,
PS_SkinWeights = 8,
PS_DestructionIndices = 9,
PS_MultilayerPaint = 10,
PS_InstanceTransform = 11,
PS_InstanceLODParams = 12,
PS_InstanceSkinningData = 13,
PS_PatchSize = 14,
PS_PatchBias = 15,
PS_ExtraData = 16,
PS_VehicleDmgNormal = 17,
PS_VehicleDmgPosition = 18,
PS_PositionDelta = 19,
PS_LightBlockerIntensity = 20,
PS_BoneIndex = 21,
PS_Padding = 22,
PS_PatchOffset = 23,
PS_Max = 24,
PS_Invalid = 255,
};
} // namespace GpuWrapApi
using GpuWrapApiVertexPackingePackingUsage = GpuWrapApi::VertexPackingePackingUsage;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
namespace RED4ext
{
namespace GpuWrapApi {
enum class eIndexBufferChunkType : uint8_t
{
IBCT_IndexUInt = 0,
IBCT_IndexUShort = 1,
IBCT_Max = 2,
};
} // namespace GpuWrapApi
using GpuWrapApieIndexBufferChunkType = GpuWrapApi::eIndexBufferChunkType;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
namespace RED4ext
{
namespace GpuWrapApi {
enum class eTextureFormat : uint8_t
{
TEXFMT_A8_Unorm = 0,
TEXFMT_R8_Unorm = 1,
TEXFMT_L8_Unorm = 2,
TEXFMT_R8G8_Unorm = 3,
TEXFMT_R8G8B8X8_Unorm = 4,
TEXFMT_R8G8B8A8_Unorm = 5,
TEXFMT_R8G8B8A8_Snorm = 6,
TEXFMT_R16_Unorm = 7,
TEXFMT_R16_Uint = 8,
TEXFMT_R32_Uint = 9,
TEXFMT_R32G32B32A32_Uint = 10,
TEXFMT_R32G32_Uint = 11,
TEXFMT_R16G16B16A16_Unorm = 12,
TEXFMT_R16G16B16A16_Uint = 14,
TEXFMT_R16G16_Uint = 15,
TEXFMT_R10G10B10A2_Unorm = 16,
TEXFMT_R16G16B16A16_Float = 17,
TEXFMT_R11G11B10_Float = 18,
TEXFMT_R16G16_Float = 19,
TEXFMT_R32G32_Float = 20,
TEXFMT_R32G32B32A32_Float = 21,
TEXFMT_R32_Float = 22,
TEXFMT_R16_Float = 23,
TEXFMT_D24S8 = 24,
TEXFMT_D32FS8 = 25,
TEXFMT_D32F = 27,
TEXFMT_D16U = 28,
TEXFMT_BC1 = 29,
TEXFMT_BC2 = 30,
TEXFMT_BC3 = 31,
TEXFMT_BC4 = 32,
TEXFMT_BC5 = 33,
TEXFMT_BC6H_UNSIGNED = 34,
TEXFMT_BC6H_SIGNED = 35,
TEXFMT_BC7 = 36,
TEXFMT_BC7_SRGB = 37,
TEXFMT_R8_Uint = 38,
TEXFMT_R8G8B8A8_Unorm_SRGB = 40,
TEXFMT_BC1_SRGB = 41,
TEXFMT_BC2_SRGB = 42,
TEXFMT_BC3_SRGB = 43,
TEXFMT_R16G16_Unorm = 44,
TEXFMT_R16G16_Sint = 45,
TEXFMT_R16G16_Snorm = 46,
TEXFMT_B5G6R5_Unorm = 47,
TEXFMT_R16_Snorm = 49,
TEXFMT_B8G8R8A8 = 50,
TEXFMT_B8G8R8A8_SRGB = 51,
TEXFMT_A8 = TEXFMT_A8_Unorm,
TEXFMT_BC6H = TEXFMT_BC6H_UNSIGNED,
TEXFMT_Float_R11G11B10 = TEXFMT_R11G11B10_Float,
TEXFMT_Float_R16 = TEXFMT_R16_Float,
TEXFMT_Float_R16G16 = TEXFMT_R16G16_Float,
TEXFMT_Float_R16G16B16A16 = TEXFMT_R16G16B16A16_Float,
TEXFMT_Float_R32 = TEXFMT_R32_Float,
TEXFMT_Float_R32G32 = TEXFMT_R32G32_Float,
TEXFMT_Float_R32G32B32A32 = TEXFMT_R32G32B32A32_Float,
TEXFMT_L8 = TEXFMT_L8_Unorm,
TEXFMT_R10G10B10A2 = TEXFMT_R10G10B10A2_Unorm,
TEXFMT_R8 = TEXFMT_R8_Unorm,
TEXFMT_R8G8 = TEXFMT_R8G8_Unorm,
TEXFMT_R8G8B8A8 = TEXFMT_R8G8B8A8_Unorm_SRGB,
TEXFMT_R8G8B8X8 = TEXFMT_R8G8B8X8_Unorm,
TEXFMT_Uint_16 = TEXFMT_R16_Uint,
TEXFMT_Uint_16_norm = TEXFMT_R16_Unorm,
TEXFMT_Uint_32 = TEXFMT_R32_Uint,
TEXFMT_Uint_R32G32B32A32 = TEXFMT_R16G16B16A16_Uint,
};
} // namespace GpuWrapApi
using GpuWrapApieTextureFormat = GpuWrapApi::eTextureFormat;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
namespace RED4ext
{
namespace GpuWrapApi {
enum class eTextureGroup : uint8_t
{
TEXG_Generic_Color = 1,
TEXG_Generic_Grayscale = 2,
TEXG_Generic_Normal = 3,
TEXG_Generic_Data = 4,
TEXG_Generic_UI = 5,
TEXG_Generic_Font = 6,
TEXG_Generic_LUT = 7,
TEXG_Generic_MorphBlend = 8,
TEXG_Multilayer_Color = 9,
TEXG_Multilayer_Normal = 10,
TEXG_Multilayer_Grayscale = 11,
TEXG_Multilayer_Microblend = 12,
};
} // namespace GpuWrapApi
using GpuWrapApieTextureGroup = GpuWrapApi::eTextureGroup;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
namespace RED4ext
{
namespace GpuWrapApi {
enum class eTextureType : uint8_t
{
TEXTYPE_2D = 0,
TEXTYPE_CUBE = 1,
TEXTYPE_ARRAY = 2,
TEXTYPE_3D = 3,
};
} // namespace GpuWrapApi
using GpuWrapApieTextureType = GpuWrapApi::eTextureType;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/GpuWrapApieTextureFormat.hpp>
#include <RED4ext/Scripting/Natives/Generated/GpuWrapApi/eTextureFormat.hpp>

namespace RED4ext
{
Expand All @@ -16,8 +16,8 @@ struct PSODescRenderTargetSetup
static constexpr const char* NAME = "PSODescRenderTargetSetup";
static constexpr const char* ALIAS = NAME;

StaticArray<GpuWrapApieTextureFormat, 8> rtFormats; // 00
GpuWrapApieTextureFormat dsFormat; // 0C
StaticArray<GpuWrapApi::eTextureFormat, 8> rtFormats; // 00
GpuWrapApi::eTextureFormat dsFormat; // 0C
uint8_t unk0D[0x10 - 0xD]; // D
};
RED4EXT_ASSERT_SIZE(PSODescRenderTargetSetup, 0x10);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/ETextureCompression.hpp>
#include <RED4ext/Scripting/Natives/Generated/ETextureRawFormat.hpp>
#include <RED4ext/Scripting/Natives/Generated/GpuWrapApieTextureGroup.hpp>
#include <RED4ext/Scripting/Natives/Generated/GpuWrapApi/eTextureGroup.hpp>

namespace RED4ext
{
Expand All @@ -19,7 +19,7 @@ struct STextureGroupSetup

ETextureCompression compression; // 00
ETextureRawFormat rawFormat; // 04
GpuWrapApieTextureGroup group; // 08
GpuWrapApi::eTextureGroup group; // 08
uint8_t platformMipBiasPC; // 09
uint8_t platformMipBiasConsole; // 0A
bool isStreamable; // 0B
Expand Down
Loading

0 comments on commit 2323513

Please sign in to comment.