1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[d3d9] Fix ColorFill with OffscreenPlainSurface

This commit is contained in:
Georg Lehmann 2021-08-06 18:17:29 +02:00 committed by Joshie
parent fd50eae5c2
commit 26516dc904
2 changed files with 3 additions and 1 deletions

View File

@ -383,6 +383,7 @@ namespace dxvk {
VkImageType D3D9CommonTexture::GetImageTypeFromResourceType(D3DRESOURCETYPE Type) {
switch (Type) {
case D3DRTYPE_SURFACE:
case D3DRTYPE_TEXTURE: return VK_IMAGE_TYPE_2D;
case D3DRTYPE_VOLUMETEXTURE: return VK_IMAGE_TYPE_3D;
case D3DRTYPE_CUBETEXTURE: return VK_IMAGE_TYPE_2D;
@ -395,6 +396,7 @@ namespace dxvk {
D3DRESOURCETYPE Dimension,
UINT Layer) {
switch (Dimension) {
case D3DRTYPE_SURFACE:
case D3DRTYPE_TEXTURE: return VK_IMAGE_VIEW_TYPE_2D;
case D3DRTYPE_VOLUMETEXTURE: return VK_IMAGE_VIEW_TYPE_3D;
case D3DRTYPE_CUBETEXTURE: return Layer == AllLayers

View File

@ -12,7 +12,7 @@ namespace dxvk {
IUnknown* pContainer)
: D3D9SurfaceBase(
pDevice,
new D3D9CommonTexture( pDevice, pDesc, D3DRTYPE_TEXTURE),
new D3D9CommonTexture( pDevice, pDesc, D3DRTYPE_SURFACE),
0, 0,
nullptr,
pContainer) { }