mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[dxvk] Make memory object of an image publicly accessible
This commit is contained in:
parent
edc74f4c8b
commit
3ee808afd6
@ -69,7 +69,7 @@ namespace dxvk {
|
||||
CreateSampleView(0);
|
||||
|
||||
if (!IsManaged()) {
|
||||
m_size = m_image->memSize();
|
||||
m_size = m_image->memory().length();
|
||||
if (!m_device->ChangeReportedMemory(-m_size))
|
||||
throw DxvkError("D3D9: Reporting out of memory from tracking.");
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ namespace dxvk {
|
||||
VkImage handle() const {
|
||||
return m_image.image;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief Image properties
|
||||
*
|
||||
@ -301,12 +301,11 @@ namespace dxvk {
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Memory size
|
||||
*
|
||||
* \returns The memory size of the image
|
||||
* \brief Memory object
|
||||
* \returns Backing memory
|
||||
*/
|
||||
VkDeviceSize memSize() const {
|
||||
return m_image.memory.length();
|
||||
const DxvkMemory& memory() const {
|
||||
return m_image.memory;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user