mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 22:24:15 +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++) {
|
||||
if (m_colorTargets.at(i) != nullptr) {
|
||||
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 });
|
||||
result.setSampleCount(m_colorTargets.at(i)->image()->info().sampleCount);
|
||||
@ -21,7 +21,7 @@ namespace dxvk {
|
||||
|
||||
if (m_depthTarget != nullptr) {
|
||||
result.setDepthFormat(DxvkRenderTargetFormat {
|
||||
m_depthTarget->imageInfo().format,
|
||||
m_depthTarget->info().format,
|
||||
m_depthTarget->imageInfo().layout,
|
||||
m_depthTarget->imageInfo().layout });
|
||||
result.setSampleCount(m_depthTarget->image()->info().sampleCount);
|
||||
|
Loading…
Reference in New Issue
Block a user