mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Add GPUSampler and GPUTextureView to BindingResource
Add validation for BindGroups
This commit is contained in:
parent
abc3ed40c9
commit
00b3f785c4
12 changed files with 591 additions and 123 deletions
|
@ -240,8 +240,8 @@ impl GPUCommandEncoderMethods for GPUCommandEncoder {
|
|||
None => false,
|
||||
};
|
||||
valid &= (*self.state.borrow() == GPUCommandEncoderState::Open) &&
|
||||
source.valid() &&
|
||||
destination.valid() &
|
||||
source.is_valid() &&
|
||||
destination.is_valid() &
|
||||
!(size & BUFFER_COPY_ALIGN_MASK == 0) &
|
||||
!(source_offset & BUFFER_COPY_ALIGN_MASK == 0) &
|
||||
!(destination_offset & BUFFER_COPY_ALIGN_MASK == 0) &
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue