Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

codeonwort
Copy link
Contributor

Environment

  • OS: Windows 11
  • GPU: RTX 3080 Ti (Driver 526.86)
  • IDE: Visual Studio 2022
  • Build configuration: Debug x64

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
Copy link

GameDreamByHuo commented Nov 15, 2022 via email

@stanard stanard merged commit 7cd2b15 into microsoft:master Nov 16, 2022
@stanard
Copy link
Member

stanard commented Nov 16, 2022

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants