52 #ifndef CGD3D9_INCLUDED 53 #define CGD3D9_INCLUDED 64 #include "../d3d9/d3dx9.h" 71 #ifdef CGD3D9DLL_EXPORTS 72 # define CGD3D9DLL_API __declspec(dllexport) 74 # define CGD3D9DLL_API 76 # define CGD3D9DLL_API __declspec(dllimport) 81 # define CGD3D9ENTRY __cdecl 90 cgD3D9DebugTrace = 1001
99 static const HRESULT CGD3D9ERR_NOTLOADED = MAKE_HRESULT(1, 0x877, 1);
100 static const HRESULT CGD3D9ERR_NODEVICE = MAKE_HRESULT(1, 0x877, 2);
101 static const HRESULT CGD3D9ERR_NOTSAMPLER = MAKE_HRESULT(1, 0x877, 3);
102 static const HRESULT CGD3D9ERR_INVALIDPROFILE = MAKE_HRESULT(1, 0x877, 4);
103 static const HRESULT CGD3D9ERR_NULLVALUE = MAKE_HRESULT(1, 0x877, 5);
104 static const HRESULT CGD3D9ERR_OUTOFRANGE = MAKE_HRESULT(1, 0x877, 6);
105 static const HRESULT CGD3D9ERR_NOTUNIFORM = MAKE_HRESULT(1, 0x877, 7);
106 static const HRESULT CGD3D9ERR_NOTMATRIX = MAKE_HRESULT(1, 0x877, 8);
107 static const HRESULT CGD3D9ERR_INVALIDPARAM = MAKE_HRESULT(1, 0x877, 9);
113 static const DWORD CGD3D9_INVALID_USAGE = 0xFF;
120 #ifndef CGD3D9_EXPLICIT 122 CGD3D9DLL_API DWORD CGD3D9ENTRY cgD3D9TypeToSize(
CGtype type);
123 CGD3D9DLL_API BYTE CGD3D9ENTRY cgD3D9ResourceToDeclUsage(
CGresource resource);
128 CGD3D9DLL_API
HRESULT CGD3D9ENTRY cgD3D9LoadProgram(
CGprogram prog,
CGbool paramShadowing, DWORD assemFlags);
130 CGD3D9DLL_API
CGbool CGD3D9ENTRY cgD3D9IsProgramLoaded(
CGprogram prog);
140 CGD3D9DLL_API
CGbool CGD3D9ENTRY cgD3D9IsParameterShadowingEnabled(
CGprogram prog);
141 CGD3D9DLL_API
CGprofile CGD3D9ENTRY cgD3D9GetLatestVertexProfile(
void);
142 CGD3D9DLL_API
CGprofile CGD3D9ENTRY cgD3D9GetLatestPixelProfile(
void);
143 CGD3D9DLL_API
const char ** CGD3D9ENTRY cgD3D9GetOptimalOptions(
CGprofile profile);
144 CGD3D9DLL_API
CGbool CGD3D9ENTRY cgD3D9IsProfileSupported(
CGprofile profile);
145 CGD3D9DLL_API
HRESULT CGD3D9ENTRY cgD3D9GetLastError(
void);
146 CGD3D9DLL_API
const char * CGD3D9ENTRY cgD3D9TranslateCGerror(
CGerror error);
147 CGD3D9DLL_API
const char * CGD3D9ENTRY cgD3D9TranslateHRESULT(
HRESULT hr);
148 CGD3D9DLL_API
void CGD3D9ENTRY cgD3D9EnableDebugTracing(
CGbool enable);
149 CGD3D9DLL_API
void CGD3D9ENTRY cgD3D9RegisterStates(
CGcontext ctx);
150 CGD3D9DLL_API
void CGD3D9ENTRY cgD3D9SetManageTextureParameters(
CGcontext ctx,
CGbool flag);
154 CGD3D9DLL_API
void CGD3D9ENTRY cgD3D9UnloadAllPrograms(
void);
Definition: d3d8types.h:77
CGresource
Definition: cg.h:439
GLboolean GLenum GLenum GLvoid * values
Definition: glext.h:6318
CGtype
Definition: cg.h:133
GLboolean enable
Definition: glext.h:12027
GLuint GLenum matrix
Definition: glext.h:10314
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
struct _CGprogram * CGprogram
Definition: cg.h:108
GLfloat param
Definition: glext.h:6480
GLenum type
Definition: glext.h:6233
AVFormatContext * ctx
Definition: record_ffmpeg.c:247
CGprofile
Definition: cg.h:758
static l_noret error(LoadState *S, const char *why)
Definition: lundump.c:39
int CGbool
Definition: cg.h:106
struct _CGcontext * CGcontext
Definition: cg.h:107
interface IDirect3DDevice9 IDirect3DDevice9
Definition: d3d9.h:181
Definition: d3d9types.h:761
CGerror
Definition: cg.h:809
GLsizei const GLfloat * value
Definition: glext.h:6709
#define MAXD3DDECLLENGTH
Definition: d3d9types.h:717
interface IDirect3DBaseTexture9 IDirect3DBaseTexture9
Definition: d3d9.h:187
GLintptr offset
Definition: glext.h:6560
struct _CGparameter * CGparameter
Definition: cg.h:109
enum _D3DSAMPLERSTATETYPE D3DSAMPLERSTATETYPE