reset depth stencil state for render pass (#3230)

This commit is contained in:
yousifd
2025-02-17 22:54:17 +03:00
committed by GitHub
parent 4bb60dceb8
commit 53a6ca5a99
3 changed files with 22 additions and 0 deletions

View File

@@ -72,6 +72,17 @@ void RenderPass::endEncoding() {
}
}
void RenderPass::resetState() {
currentDepthStencilState.reset();
currentStencilReferenceValue = 0;
for (int i = 0; i < maxBinds; ++i) {
vertexBinds[i].reset();
fragmentBinds[i].reset();
fragmentTextureBindings[i].reset();
fragmentSamplerStates[i].reset();
}
}
namespace {
constexpr auto missing = "<none>";
NS::String* toNSString(const char* str) {