mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Fixed incorrect framebuffer attachment formats
This commit is contained in:
parent
59a4e80c5f
commit
4e780f4f60
@ -12,7 +12,7 @@ namespace dxvk {
|
|||||||
for (uint32_t i = 0; i < MaxNumRenderTargets; i++) {
|
for (uint32_t i = 0; i < MaxNumRenderTargets; i++) {
|
||||||
if (m_colorTargets.at(i) != nullptr) {
|
if (m_colorTargets.at(i) != nullptr) {
|
||||||
result.setColorFormat(i, DxvkRenderTargetFormat {
|
result.setColorFormat(i, DxvkRenderTargetFormat {
|
||||||
m_colorTargets.at(i)->imageInfo().format,
|
m_colorTargets.at(i)->info().format,
|
||||||
m_colorTargets.at(i)->imageInfo().layout,
|
m_colorTargets.at(i)->imageInfo().layout,
|
||||||
m_colorTargets.at(i)->imageInfo().layout });
|
m_colorTargets.at(i)->imageInfo().layout });
|
||||||
result.setSampleCount(m_colorTargets.at(i)->image()->info().sampleCount);
|
result.setSampleCount(m_colorTargets.at(i)->image()->info().sampleCount);
|
||||||
@ -21,7 +21,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
if (m_depthTarget != nullptr) {
|
if (m_depthTarget != nullptr) {
|
||||||
result.setDepthFormat(DxvkRenderTargetFormat {
|
result.setDepthFormat(DxvkRenderTargetFormat {
|
||||||
m_depthTarget->imageInfo().format,
|
m_depthTarget->info().format,
|
||||||
m_depthTarget->imageInfo().layout,
|
m_depthTarget->imageInfo().layout,
|
||||||
m_depthTarget->imageInfo().layout });
|
m_depthTarget->imageInfo().layout });
|
||||||
result.setSampleCount(m_depthTarget->image()->info().sampleCount);
|
result.setSampleCount(m_depthTarget->image()->info().sampleCount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user