summaryrefslogtreecommitdiffstats
path: root/include/D3D9
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2015-01-07 18:43:20 +0100
committerAxel Davy <[email protected]>2015-02-06 00:07:18 +0100
commit42ac71a4e20c04a2cd7cd441274e5c527012a03c (patch)
tree80ad4134ee3809b9a06639d61f8f96c515968b73 /include/D3D9
parent5c61f6344a93e2bddb1984dcc735b8bc587c5db9 (diff)
st/nine: Implement RESZ hack
This D3D hack allows to resolve a multisampled depth buffer into a single sampled one. Note that the implementation is slightly incorrect. When querying the content of D3DRS_POINTSIZE, it should return the resz code if it has been set. This behaviour will be implemented when state changes will be reworked. For now the current behaviour is ok, since apps use the D3DCREATE_PUREDEVICE flag when creating the device, which means they won't read states and in exchange get better performance. Reviewed-by: Tiziano Bacocco <[email protected]> Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'include/D3D9')
-rw-r--r--include/D3D9/d3d9types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/D3D9/d3d9types.h b/include/D3D9/d3d9types.h
index 456ae9ffb02..859c2f56dc4 100644
--- a/include/D3D9/d3d9types.h
+++ b/include/D3D9/d3d9types.h
@@ -658,6 +658,7 @@ typedef enum _D3DFORMAT {
D3DFMT_NVDB = MAKEFOURCC('N', 'V', 'D', 'B'),
D3DFMT_NV11 = MAKEFOURCC('N', 'V', '1', '1'),
D3DFMT_NV12 = MAKEFOURCC('N', 'V', '1', '2'),
+ D3DFMT_RESZ = MAKEFOURCC('R', 'E', 'S', 'Z'),
D3DFMT_Y210 = MAKEFOURCC('Y', '2', '1', '0'),
D3DFMT_Y216 = MAKEFOURCC('Y', '2', '1', '6'),
D3DFMT_Y410 = MAKEFOURCC('Y', '4', '1', '0')