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:
parent
fd50eae5c2
commit
26516dc904
@ -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
|
||||
|
@ -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) { }
|
||||
|
Loading…
Reference in New Issue
Block a user