← 输入框|github.com|刷新
Skip to content

Remove groupLabel parameter from popDebugGroup - #169

Merged
Kangz merged 1 commit into
gpuweb:masterfrom
bjjones:master
Jan 28, 2019
Merged

Kangz merged 1 commit into
gpuweb:masterfrom
bjjones:master

Conversation

@bjjones

@bjjones bjjones commented Jan 17, 2019

Copy link
Copy Markdown
Contributor

Remove groupLabel parameter from popDebugGroup.

popDebugGroup was initially merged to the IDL in f6b5b25

None of the backends allow you to pass the groupLabel as a parameter. All backends will match popDebugGroup equivalent with the last called pushDebugGroup equivalent.

DX12 PIX
void PIXEndEvent(ID3D12GraphicsCommandList* commandList); [MSDN]

Vulkan
void vkCmdDebugMarkerEndEXT(VkCommandBuffer commandBuffer); [Khronos]

Metal
func popDebugGroup() [Apple]

@kvark

kvark commented Jan 18, 2019

Copy link
Copy Markdown
Contributor

To be honest, when I first skimmed over #126 I thought that this is intentional: it's not infrequent for developers to mess up the push/pop without realizing it, and it's a good practice to comment on the pop() like:

context.popDebugMarker(); //shadow maps

So making it a part of the API seems like it could be useful. HOWEVER. We don't need to be too creative here, and we are safe to leave those enhancements to whatever layers are atop of us :)

TL;DR: PR is fine

@magcius

magcius commented Jan 18, 2019

Copy link
Copy Markdown

Yeah, this was my copy/paste typo in #121. Even my own polyfill of the API doesn't have that argument.

@Kangz
Kangz merged commit 852a4ba into gpuweb:master Jan 28, 2019
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants