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

update doc of get_bind_group_layout #434

Merged
merged 2 commits into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions wgpu/backends/wgpu_native/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1974,10 +1974,7 @@ def _destroy(self):

class GPUPipelineBase(classes.GPUPipelineBase):
def get_bind_group_layout(self, index):
"""Get the bind group layout at the given index.

Note that current wgpu-native aborts immediately if the index is out of range.
"""
"""Get the bind group layout at the given index."""
if isinstance(self, GPUComputePipeline):
# H: WGPUBindGroupLayout f(WGPUComputePipeline computePipeline, uint32_t groupIndex)
layout_id = libf.wgpuComputePipelineGetBindGroupLayout(
Expand Down
Loading