Skip to content

Commit 25a6c42

Browse files
committed
Support immutable samplers
1 parent 627d096 commit 25a6c42

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

spec/index.bs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@ dictionary GPUBindGroupLayoutBinding {
313313
// are more efficient to bind at run-time.
314314
GPUTextureViewDimension textureDimension;
315315
bool multisample = false;
316+
// For "sampler" binding type, if the actual sampler object is provided here,
317+
// it becomes a part of the layout: an "immutable" sampler object, in a sense that
318+
// no bind group binding call can affect it.
319+
GPUSampler immutableSampler;
316320
// For uniform, storage and readonly storage buffer, means that the binding
317321
// has a dynamic offset. One offset must be passed to setBindGroup for each
318322
// dynamic binding in increasing order of `binding` number.
@@ -649,7 +653,7 @@ interface GPURenderPassEncoder : GPUProgrammablePassEncoder {
649653

650654
void draw(u32 vertexCount, u32 instanceCount, u32 firstVertex, u32 firstInstance);
651655
void drawIndexed(u32 indexCount, u32 instanceCount, u32 firstIndex, i32 baseVertex, u32 firstInstance);
652-
656+
653657
// Base instance must be set to zero inside the indirect buffer
654658
void drawIndirect(GPUBuffer indirectBuffer, u64 indirectOffset);
655659
void drawIndexedIndirect(GPUBuffer indirectBuffer, u64 indirectOffset);

0 commit comments

Comments
 (0)