microsoft / DirectX-Graphics-Samples

This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.
MIT License
5.89k stars 2k forks source link

[D3D12RaytracingSimpleLighting] Fix a warning about the initial state of a buffer resource #804

Closed codeonwort closed 1 year ago

codeonwort commented 1 year ago

Environment

In D3D12RaytracingSimpleLighting::BuildAccelerationStructures():

D3D12 WARNING: ID3D12Device::CreateCommittedResource: Ignoring InitialState D3D12_RESOURCE_STATE_UNORDERED_ACCESS. Buffers are effectively created in state D3D12_RESOURCE_STATE_COMMON. [ STATE_CREATION WARNING #1328: CREATERESOURCE_STATE_IGNORED]

Changing the initial state to D3D12_RESOURCE_STATE_COMMON as reported solves the warning.

GameDreamByHuo commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。 你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

stanard commented 1 year ago

Thank you