📄 pvrdxreg.h
字号:
/******************************************************************************
* Name : pvrdxreg.h
* Title : PVR Dx HAL registry flags and structures.
* Author(s) : Imagination Technologies
* Created : 1st August 2003
*
* Copyright : 2003 by Imagination Technologies Limited.
* All rights reserved. No part of this software, either
* material or conceptual may be copied or distributed,
* transmitted, transcribed, stored in a retrieval system
* or translated into any human or computer language in any
* form by any means, electronic, mechanical, manual or
* other-wise, or disclosed to third parties without the
* express written permission of Imagination Technologies
* Limited, Unit 8, HomePark Industrial Estate,
* King's Langley, Hertfordshire, WD4 8LZ, U.K.
*
* Description : PVR Dx HAL registry flags and structures.
*
* Platform : Generic
*
* Notes : formerly pmxdxreg.h mks rev 1.6
*
* Modifications:-
* $Log: pvrdxreg.h $
*
*
******************************************************************************/
#if !defined (__PVRDXREG_H__)
#define __PVRDXREG_H__
/*****************************************************************************
Registery Paths
*****************************************************************************/
#include "regpaths.h"
/*****************************************************************************
Registry flags
*****************************************************************************/
#define PVRHALREG_SOFTEN_PUNCH_THROUGH 0x00000001
#define PVRHALREG_TEXTURE_SUPER_SAMPLE 0x00000004
#define PVRHALREG_TEXTURE_TRILIN_FILTER 0x00000008
#define PVRHALREG_AUTO_MIP_MAP 0x00000020
#define PVRHALREG_RHW_RENDERING 0x00000080
#define PVRHALREG_DISABLE_XSUPERSAMPLE 0x00004000
#define PVRHALREG_DISABLE_YSUPERSAMPLE 0x00008000
#define PVRHALREG_2XAA_YSUPERSAMPLE 0x00010000
#define PVRHALREG_ENABLE_TASNAPPING 0x00040000
#define PVRHALREG_ENABLE_TASMALLCULL 0x00080000
#define PVRHALREG_ENABLE_TAHALFOFFSET 0x00100000
#define PVRHALREG_ENABLE_ISPHALFOFFSET 0x00200000
#define PVRHALREG_COMPLEX_SCENE 0x00800000
#define PVRHALREG_DISABLE_ALTEST 0x02000000
#define PVRHALREG_DISABLE_ALTEST_OPAQUE 0x04000000
#define PVRHALREG_ENABLE_YUV 0x10000000
#define PVRHALREG_NORENDERS_TILLFLIP 0x80000000
#define PVRHALREG_DEFAULT_FLAGS PVRHALREG_ENABLE_YUV
/*****************************************************************************
Flags2 word...
*****************************************************************************/
#define PVRHALREG2_DISABLE_RENDER_ON_LOCK 0x00000004
#define PVRHALREG2_DISABLE_STENCIL 0x00000020
#define PVRHALREG2_DISABLE_MIPMAP 0x00000100
#define PVRHALREG2_ONLYUSELASTFOGCOLOUR 0x00001000
#define PVRHALREG2_DISABLE_MIDSCENE_RENDER 0x01000000
#define PVRHALREG2_ZERO_TEXTURE_MEMORY 0x08000000
#define PVRHALREG2_DUPLICATE_APPNAME 0x10000000
#define PVRHALREG2_DISABLE_24BPP_3DDEVICE 0x80000000
/*
Flags2 default (if Flags2 not present in registry)
*/
#define PVRHALREG2_DEFAULT_FLAGS 0
/*****************************************************************************
Internal flags..
*****************************************************************************/
#define PVRHALREGI_ENABLE_STATSDISPLAY 0x00000001
#define PVRHALREGI_ENABLE_TIMINGSTATS 0x00000002
#define PVRHALREGI_ENABLE_FRAMENUM 0x00000004
#define PVRHALREGI_DISABLE_CLEARBATCHING 0x00000008
#define PVRHALREGI_DISABLE_MIPFILTER 0x00000010
#define PVRHALREGI_DISABLE_TSP 0x00000020
#define PVRHALREGI_DISABLE_DX8 0x00000040
#define PVRHALREGI_NOTWIDDLEDTEXTURES 0x00000080
/*****************************************************************************
HAL Registry dayta structure. Any changes to this structure MUST be reflected
in ppszDXFlagStrings table in pvrdxah.h
*****************************************************************************/
typedef struct _PVR_REG_DATA_
{
DWORD dwFlags;
DWORD dwFlags2;
DWORD dwIFlags;
DWORD dwMIPMapThreshold;
DWORD dwZBiasScale;
} PVR_REG_DATA, *PPVR_REG_DATA;
/*****************************************************************************
Function prototypes.
*****************************************************************************/
void GetPVRDXRegSettings(DWORD dwDevCookie, PPVR_REG_DATA psRegData);
#endif /* __PVRDXREG_H__ */
/*****************************************************************************
End of file (pvrdxreg.h)
*****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -