Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Default clear values for color / depth / stencil? #102

Open
BenConMS opened this issue Aug 1, 2017 · 1 comment
Open

Default clear values for color / depth / stencil? #102

BenConMS opened this issue Aug 1, 2017 · 1 comment

Comments

@BenConMS
Copy link
Contributor

BenConMS commented Aug 1, 2017

The D3D12 debug layer currently fires a lot of warnings about there not being default clear values. This is a feature that enhances the performance of clearing by setting it up front.

I have noticed that Vulkan apparently has the same warning / feature. It is less clear to me whether Metal does this.

I am opening an issue to consider adding this feature to NXT since it maps pretty directly to a hardware feature and multiple backends can support it.

@Kangz
Copy link
Contributor

Kangz commented Aug 2, 2017

Thanks for raising this, default clear values will be important for performance, especially if we decide that the Web facing API has to act as if all resources are set to 0 when allocated.

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

No branches or pull requests

2 participants