mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
clarify binding array of handles comment
This commit is contained in:
committed by
Connor Fitzgerald
parent
f92340cd03
commit
e51b4afa1e
@@ -271,6 +271,7 @@ impl<'w> BlockContext<'w> {
|
||||
crate::TypeInner::Vector { .. } => {
|
||||
self.write_vector_access(expr_handle, base, index, block)?
|
||||
}
|
||||
// Only binding arrays in the Handle address space will take this path (due to `is_intermediate`)
|
||||
crate::TypeInner::BindingArray {
|
||||
base: binding_type, ..
|
||||
} => {
|
||||
@@ -347,6 +348,7 @@ impl<'w> BlockContext<'w> {
|
||||
));
|
||||
id
|
||||
}
|
||||
// Only binding arrays in the Handle address space will take this path (due to `is_intermediate`)
|
||||
crate::TypeInner::BindingArray {
|
||||
base: binding_type, ..
|
||||
} => {
|
||||
@@ -1426,8 +1428,8 @@ impl<'w> BlockContext<'w> {
|
||||
) -> Result<ExpressionPointer, Error> {
|
||||
let result_lookup_ty = match self.fun_info[expr_handle].ty {
|
||||
TypeResolution::Handle(ty_handle) => match return_type_override {
|
||||
// We use the return type override as a special case for binding arrays as the OpAccessChain
|
||||
// needs to return a pointer, but indexing into a binding array just gives you the type of
|
||||
// We use the return type override as a special case for handle binding arrays as the OpAccessChain
|
||||
// needs to return a pointer, but indexing into a handle binding array just gives you the type of
|
||||
// the binding in the IR.
|
||||
Some(ty) => ty,
|
||||
None => LookupType::Handle(ty_handle),
|
||||
|
||||
Reference in New Issue
Block a user