You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, great work with the tool, I've been looking into some of the stuff around texture rendering too, luckily they left a lot in the renderer.dll file that lays out some of the types/enums for it.
Came up with a 010 editor template that maps out some more of the CTXR header, figured it's worth posting in case it can help at all.
BigEndian();
enum<uint32>CBaseTexture_EFormat
{
kFormat_A8R8G8B8=0x0, // DXGI_FORMAT_B8G8R8A8_UNORM// 0x1 isn't defined in Renderer.dll, but seems to use DXGI_FORMAT_B8G8R8X8_UNORM// maybe kFormat_X8R8G8B8 = 0x1,kFormat_A16B16G16R16F=0x2, // DXGI_FORMAT_R16G16B16A16_FLOATkFormat_R32F=0x3, // DXGI_FORMAT_R32_FLOATkFormat_D24X8=0x4, // DXGI_FORMAT_D24_UNORM_S8_UINTkFormat_DXT1=0x5, // DXGI_FORMAT_BC1_UNORMkFormat_DXT3=0x6, // DXGI_FORMAT_BC2_UNORMkFormat_DXT5=0x7, // DXGI_FORMAT_BC3_UNORMkFormat_A32B32G32R32F=0x8, // DXGI_FORMAT_R32G32B32A32_FLOATkFormat_Luminance8=0x9, // DXGI_FORMAT_R8_UNORMkFormat_D24FS8=0xA, // not mapped to DXGI_FORMAT?kFormat_Count=0xB,
kFormat_Invalid=0xFFFFFFFF,
};
enum<uint32>CBaseTexture_EType
{
kType_Normal=0x0,
kType_Cube=0x1, // reads 6 * MipCount images from the file if this is set?
};
// struct is packed without padding, requires the following in VC++// #pragma pack(push, 1)structCTxrHeader
{
uint32Magic_0;
uint32Version_4;
uint16Width_8;
uint16Height_A;
uint16Depth_C;
CBaseTexture_EFormatFormat_E;
byteFlags_12;
intunk_13;
intunk_17;
intunk_1B;
if (Version_4 >= 6)
{
byteunk_1F;
byteunk_20;
}
if (Version_4 >= 7)
{
byteunk_21;
}
CBaseTexture_ETypeTextureType_22;
byteMipCount_26;
};
// #pragma pack(pop)CTxrHeaderHeader;
The text was updated successfully, but these errors were encountered:
Hi, great work with the tool, I've been looking into some of the stuff around texture rendering too, luckily they left a lot in the renderer.dll file that lays out some of the types/enums for it.
Came up with a 010 editor template that maps out some more of the CTXR header, figured it's worth posting in case it can help at all.
The text was updated successfully, but these errors were encountered: