feat(profile): update 3.3.5a profile

This commit is contained in:
phaneron 2024-11-27 01:59:15 -05:00
parent 9053d61b6b
commit e1bab2b375
186 changed files with 1204 additions and 43942 deletions

View file

@ -0,0 +1,125 @@
#ifndef D3D9_CAPS_H
#define D3D9_CAPS_H
#include "system/types.h"
typedef enum D3DDEVTYPE D3DDEVTYPE;
typedef struct D3DVSHADERCAPS2_0 D3DVSHADERCAPS2_0;
typedef struct D3DPSHADERCAPS2_0 D3DPSHADERCAPS2_0;
typedef struct D3DCAPS9 D3DCAPS9;
enum D3DDEVTYPE {
D3DDEVTYPE_HAL = 1,
D3DDEVTYPE_REF = 2,
D3DDEVTYPE_SW = 3,
D3DDEVTYPE_NULLREF = 4,
D3DDEVTYPE_FORCE_uint32_t = 0xffffffff
};
struct D3DVSHADERCAPS2_0 {
uint32_t Caps;
int32_t DynamicFlowControlDepth;
int32_t NumTemps;
int32_t StaticFlowControlDepth;
};
struct D3DPSHADERCAPS2_0 {
uint32_t Caps;
int32_t DynamicFlowControlDepth;
int32_t NumTemps;
int32_t StaticFlowControlDepth;
int32_t NumInstructionSlots;
};
struct D3DCAPS9 {
D3DDEVTYPE DeviceType;
uint32_t AdapterOrdinal;
uint32_t Caps;
uint32_t Caps2;
uint32_t Caps3;
uint32_t PresentationIntervals;
uint32_t CursorCaps;
uint32_t DevCaps;
uint32_t PrimitiveMiscCaps;
uint32_t RasterCaps;
uint32_t ZCmpCaps;
uint32_t SrcBlendCaps;
uint32_t DestBlendCaps;
uint32_t AlphaCmpCaps;
uint32_t ShadeCaps;
uint32_t TextureCaps;
uint32_t TextureFilterCaps;
uint32_t CubeTextureFilterCaps;
uint32_t VolumeTextureFilterCaps;
uint32_t TextureAddressCaps;
uint32_t VolumeTextureAddressCaps;
uint32_t LineCaps;
uint32_t MaxTextureWidth, MaxTextureHeight;
uint32_t MaxVolumeExtent;
uint32_t MaxTextureRepeat;
uint32_t MaxTextureAspectRatio;
uint32_t MaxAnisotropy;
float MaxVertexW;
float GuardBandLeft;
float GuardBandTop;
float GuardBandRight;
float GuardBandBottom;
float ExtentsAdjust;
uint32_t StencilCaps;
uint32_t FVFCaps;
uint32_t TextureOpCaps;
uint32_t MaxTextureBlendStages;
uint32_t MaxSimultaneousTextures;
uint32_t VertexProcessingCaps;
uint32_t MaxActiveLights;
uint32_t MaxUserClipPlanes;
uint32_t MaxVertexBlendMatrices;
uint32_t MaxVertexBlendMatrixIndex;
float MaxPointSize;
uint32_t MaxPrimitiveCount;
uint32_t MaxVertexIndex;
uint32_t MaxStreams;
uint32_t MaxStreamStride;
uint32_t VertexShaderVersion;
uint32_t MaxVertexShaderConst;
uint32_t PixelShaderVersion;
float PixelShader1xMaxValue;
/* DX 9 */
uint32_t DevCaps2;
float MaxNpatchTessellationLevel;
uint32_t Reserved5;
uint32_t MasterAdapterOrdinal;
uint32_t AdapterOrdinalInGroup;
uint32_t NumberOfAdaptersInGroup;
uint32_t DeclTypes;
uint32_t NumSimultaneousRTs;
uint32_t StretchRectFilterCaps;
D3DVSHADERCAPS2_0 VS20Caps;
D3DPSHADERCAPS2_0 PS20Caps;
uint32_t VertexTextureFilterCaps;
uint32_t MaxVShaderInstructionsExecuted;
uint32_t MaxPShaderInstructionsExecuted;
uint32_t MaxVertexShader30InstructionSlots;
uint32_t MaxPixelShader30InstructionSlots;
};
#endif

View file

@ -0,0 +1,237 @@
#ifndef D3D9_DEVICE_H
#define D3D9_DEVICE_H
#include "system/types.h"
#include "external/d3d9/caps.h"
typedef int32_t D3DFORMAT;
DECLARE_STRUCT(D3DDISPLAYMODE);
DECLARE_STRUCT(IDirect3D9);
DECLARE_STRUCT(IDirect3DDevice9);
DECLARE_STRUCT(IDirect3DDevice9_vtable);
DECLARE_STRUCT(IDirect3DVertexDeclaration9);
DECLARE_STRUCT(IDirect3DSurface9__vtable);
DECLARE_STRUCT(IDirect3DSurface9);
DECLARE_STRUCT(IDirect3DIndexBuffer9);
DECLARE_STRUCT(IDirect3DVertexBuffer9);
DECLARE_STRUCT(IDirect3DTexture9);
DECLARE_STRUCT(IDirect3DVertexShader9__vtable);
DECLARE_STRUCT(IDirect3DVertexShader9);
DECLARE_STRUCT(IDirect3DPixelShader9__vtable);
DECLARE_STRUCT(IDirect3DPixelShader9);
DECLARE_STRUCT(D3DLOCKED_RECT);
struct D3DDISPLAYMODE {
uint32_t Width;
uint32_t Height;
uint32_t RefreshRate;
D3DFORMAT Format;
};
struct IDirect3D9 {
void** v_vtable;
};
struct IDirect3DDevice9_vtable {
void* v_fn_0_QueryInterface;
void* v_fn_1_AddRef;
void* v_fn_2_Release;
void* v_fn_3_TestCooperativeLevel;
void* v_fn_4_GetAvailableTextureMem;
void* v_fn_5_EvictManagedResources;
void* v_fn_6_GetDirect3D;
void* v_fn_7_GetDeviceCaps;
void* v_fn_8_GetDisplayMode;
void* v_fn_9_GetCreationParameters;
void* v_fn_10_SetCursorProperties;
void* v_fn_11_SetCursorPosition;
void* v_fn_12_ShowCursor;
void* v_fn_13_CreateAdditionalSwapChain;
void* v_fn_14_GetSwapChain;
void* v_fn_15_GetNumberOfSwapChains;
void* v_fn_16_Reset;
void* v_fn_17_Present;
void* v_fn_18_GetBackBuffer;
void* v_fn_19_GetRasterStatus;
void* v_fn_20_SetDialogBoxMode;
void* v_fn_21_SetGammaRamp;
void* v_fn_22_GetGammaRamp;
void* v_fn_23_CreateTexture;
void* v_fn_24_CreateVolumeTexture;
void* v_fn_25_CreateCubeTexture;
void* v_fn_26_CreateVertexBuffer;
void* v_fn_27_CreateIndexBuffer;
void* v_fn_28_CreateRenderTarget;
void* v_fn_29_CreateDepthStencilSurface;
void* v_fn_30_UpdateSurface;
void* v_fn_31_UpdateTexture;
void* v_fn_32_GetRenderTargetData;
void* v_fn_33_GetFrontBufferData;
void* v_fn_34_StretchRect;
void* v_fn_35_ColorFill;
void* v_fn_36_CreateOffscreenPlainSurface;
void* v_fn_37_SetRenderTarget;
void* v_fn_38_GetRenderTarget;
void* v_fn_39_SetDepthStencilSurface;
void* v_fn_40_GetDepthStencilSurface;
void* v_fn_41_BeginScene;
void* v_fn_42_EndScene;
void* v_fn_43_Clear;
void* v_fn_44_SetTransform;
void* v_fn_45_GetTransform;
void* v_fn_46_MultiplyTransform;
void* v_fn_47_SetViewport;
void* v_fn_48_GetViewport;
void* v_fn_49_SetMaterial;
void* v_fn_50_GetMaterial;
void* v_fn_51_SetLight;
void* v_fn_52_GetLight;
void* v_fn_53_LightEnable;
void* v_fn_54_GetLightEnable;
void* v_fn_55_SetClipPlane;
void* v_fn_56_GetClipPlane;
void* v_fn_57_SetRenderState;
void* v_fn_58_GetRenderState;
void* v_fn_59_CreateStateBlock;
void* v_fn_60_BeginStateBlock;
void* v_fn_61_EndStateBlock;
void* v_fn_62_SetClipStatus;
void* v_fn_63_GetClipStatus;
void* v_fn_64_GetTexture;
void* v_fn_65_SetTexture;
void* v_fn_66_GetTextureStageState;
void* v_fn_67_SetTextureStageState;
void* v_fn_68_GetSamplerState;
void* v_fn_69_SetSamplerState;
void* v_fn_70_ValidateDevice;
void* v_fn_71_SetPaletteEntries;
void* v_fn_72_GetPaletteEntries;
void* v_fn_73_SetCurrentTexturePalette;
void* v_fn_74_GetCurrentTexturePalette;
void* v_fn_75_SetScissorRect;
void* v_fn_76_GetScissorRect;
void* v_fn_77_SetSoftwareVertexProcessing;
void* v_fn_78_GetSoftwareVertexProcessing;
void* v_fn_79_SetNPatchMode;
void* v_fn_80_GetNPatchMode;
void* v_fn_81_DrawPrimitive;
void* v_fn_82_DrawIndexedPrimitive;
void* v_fn_83_DrawPrimitiveUP;
void* v_fn_84_DrawIndexedPrimitiveUP;
void* v_fn_85_ProcessVertices;
void* v_fn_86_CreateVertexDeclaration;
void* v_fn_87_SetVertexDeclaration;
void* v_fn_88_GetVertexDeclaration;
void* v_fn_89_SetFVF;
void* v_fn_90_GetFVF;
void* v_fn_91_CreateVertexShader;
void* v_fn_92_SetVertexShader;
void* v_fn_93_GetVertexShader;
void* v_fn_94_SetVertexShaderConstantF;
void* v_fn_95_GetVertexShaderConstantF;
void* v_fn_96_SetVertexShaderConstantI;
void* v_fn_97_GetVertexShaderConstantI;
void* v_fn_98_SetVertexShaderConstantB;
void* v_fn_99_GetVertexShaderConstantB;
void* v_fn_100_SetStreamSource;
void* v_fn_101_GetStreamSource;
void* v_fn_102_SetStreamSourceFreq;
void* v_fn_103_GetStreamSourceFreq;
void* v_fn_104_SetIndices;
void* v_fn_105_GetIndices;
void* v_fn_106_CreatePixelShader;
void* v_fn_107_SetPixelShader;
void* v_fn_108_GetPixelShader;
void* v_fn_109_SetPixelShaderConstantF;
void* v_fn_110_GetPixelShaderConstantF;
void* v_fn_111_SetPixelShaderConstantI;
void* v_fn_112_GetPixelShaderConstantI;
void* v_fn_113_SetPixelShaderConstantB;
void* v_fn_114_GetPixelShaderConstantB;
void* v_fn_115_DrawRectPatch;
void* v_fn_116_DrawTriPatch;
void* v_fn_117_DeletePatch;
void* v_fn_118_CreateQuery;
};
struct IDirect3DDevice9 {
IDirect3DDevice9_vtable* v_vtable;
};
struct IDirect3DVertexDeclaration9 {
void** v_vtable;
};
struct IDirect3DSurface9__vtable {
/*** IUnknown methods ***/
void* v_fn_0_QueryInterface;
void* v_fn_1_AddRef;
void* v_fn_2_Release;
/*** IDirect3DResource9 methods ***/
void* v_fn_3_GetDevice;
void* v_fn_4_SetPrivateData;
void* v_fn_5_GetPrivateData;
void* v_fn_6_FreePrivateData;
void* v_fn_7_SetPriority;
void* v_fn_8_GetPriority;
void* v_fn_9_PreLoad;
void* v_fn_10_GetType;
/*** IDirect3DSurface9 methods ***/
void* v_fn_11_GetContainer;
void* v_fn_12_GetDesc;
void* v_fn_13_LockRect;
void* v_fn_14_UnlockRect;
void* v_fn_15_GetDC;
void* v_fn_16_ReleaseDC;
};
struct IDirect3DSurface9 {
IDirect3DSurface9__vtable* v_vtable;
};
struct IDirect3DIndexBuffer9 {
void** v_vtable;
};
struct IDirect3DVertexBuffer9 {
void** v_vtable;
};
struct IDirect3DTexture9 {
void** v_vtable;
};
struct D3DLOCKED_RECT {
int32_t Pitch;
void* pBits;
};
struct IDirect3DVertexShader9__vtable {
void* v_fn_0_QueryInterface;
void* v_fn_1_AddRef;
void* v_fn_2_Release;
void* v_fn_3_GetDevice;
void* v_fn_4_GetFunction;
};
struct IDirect3DVertexShader9 {
IDirect3DVertexShader9__vtable* v_vtable;
};
struct IDirect3DPixelShader9__vtable {
void* v_fn_0_QueryInterface;
void* v_fn_1_AddRef;
void* v_fn_2_Release;
void* v_fn_3_GetDevice;
void* v_fn_4_GetFunction;
};
struct IDirect3DPixelShader9 {
IDirect3DPixelShader9__vtable* v_vtable;
};
#endif