diff --git a/doc/help.html b/doc/help.html index c99464ca1514..101082aeba87 100644 --- a/doc/help.html +++ b/doc/help.html @@ -1,2 +1,2 @@ -
self
and other
values to be equal, and is used\nby ==
.source
. Read moreself
and other
values to be equal, and is used\nby ==
.source
. Read moresource
. Read moresource
. Read moresource
. Read moresource
. Read moreAdds color space and premultiplied alpha information to make this\ndescriptor tagged.
\nsource
. Read moreAdds color space and premultiplied alpha information to make this\ndescriptor tagged.
\nsource
. Read moreself
and other
values to be equal, and is used\nby ==
.source
. Read moresource
. Read moreAllow for incremental updates (no change in size), currently this is unimplemented\nand will build as normal (this is fine, update vs build should be unnoticeable)
\nAllow the acceleration structure to be compacted in a copy operation, the function\nto compact is not currently implemented.
\nOptimize for fast ray tracing performance, recommended if the geometry is unlikely\nto change (e.g. in a game: non-interactive scene geometry)
\nOptimize for fast build time, recommended if geometry is likely to change frequently\n(e.g. in a game: player model).
\nOptimize for low memory footprint (both while building and in the output BLAS).
\nGet a flags value with all bits unset.
\nGet a flags value with all known bits set.
\nGet the underlying bits value.
\nThe returned value is exactly the bits set in this flags value.
\nConvert from a bits value.
\nThis method will return None
if any unknown bits are set.
Convert from a bits value, unsetting any unknown bits.
\nConvert from a bits value exactly.
\nGet a flags value with the bits of a flag with the given name set.
\nThis method will return None
if name
is empty or doesn’t\ncorrespond to any named flag.
Whether any set bits in a source flags value are also set in a target flags value.
\nWhether all set bits in a source flags value are also set in a target flags value.
\nThe bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\nremove
won’t truncate other
, but the !
operator will.
The bitwise exclusive-or (^
) of the bits in two flags values.
Call insert
when value
is true
or remove
when value
is false
.
The bitwise and (&
) of the bits in two flags values.
The bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
The bitwise exclusive-or (^
) of the bits in two flags values.
The bitwise negation (!
) of the bits in a flags value, truncating the result.
Yield a set of contained flags values.
\nEach yielded flags value will correspond to a defined named flag. Any unknown bits\nwill be yielded together as a final flags value.
\nYield a set of contained named flags values.
\nThis method is like iter
, except only yields bits in contained named flags.\nAny unknown bits, or bits not corresponding to a contained flag will not be yielded.
The bitwise exclusive-or (^
) of the bits in two flags values.
self
and other
values to be equal, and is used\nby ==
.source
. Read moreThe bitwise or (|
) of the bits in each flags value.
The bitwise and (&
) of the bits in two flags values.
&
operator.The bitwise or (|
) of the bits in two flags values.
|
operator.The bitwise or (|
) of the bits in two flags values.
The bitwise or (|
) of the bits in each flags value.
extend_one
)extend_one
)The bitwise negation (!
) of the bits in a flags value, truncating the result.
!
operator.The bitwise exclusive-or (^
) of the bits in two flags values.
^
operator.|
) of the bits in two flags values.&!
). Read more^
) of the bits in two flags values.Flags::insert
] when value
is true
or [Flags::remove
] when value
is false
.&
) of the bits in two flags values.&!
). Read more^
) of the bits in two flags values.!
) of the bits in a flags value, truncating the result.The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
-
operator.The bitwise and (&
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
Allow for incremental updates (no change in size), currently this is unimplemented\nand will build as normal (this is fine, update vs build should be unnoticeable)
\nAllow the acceleration structure to be compacted in a copy operation, the function\nto compact is not currently implemented.
\nOptimize for fast ray tracing performance, recommended if the geometry is unlikely\nto change (e.g. in a game: non-interactive scene geometry)
\nOptimize for fast build time, recommended if geometry is likely to change frequently\n(e.g. in a game: player model).
\nOptimize for low memory footprint (both while building and in the output BLAS).
\nGet a flags value with all bits unset.
\nGet a flags value with all known bits set.
\nGet the underlying bits value.
\nThe returned value is exactly the bits set in this flags value.
\nConvert from a bits value.
\nThis method will return None
if any unknown bits are set.
Convert from a bits value, unsetting any unknown bits.
\nConvert from a bits value exactly.
\nGet a flags value with the bits of a flag with the given name set.
\nThis method will return None
if name
is empty or doesn’t\ncorrespond to any named flag.
Whether any set bits in a source flags value are also set in a target flags value.
\nWhether all set bits in a source flags value are also set in a target flags value.
\nThe bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\nremove
won’t truncate other
, but the !
operator will.
The bitwise exclusive-or (^
) of the bits in two flags values.
Call insert
when value
is true
or remove
when value
is false
.
The bitwise and (&
) of the bits in two flags values.
The bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
The bitwise exclusive-or (^
) of the bits in two flags values.
The bitwise negation (!
) of the bits in a flags value, truncating the result.
Yield a set of contained flags values.
\nEach yielded flags value will correspond to a defined named flag. Any unknown bits\nwill be yielded together as a final flags value.
\nYield a set of contained named flags values.
\nThis method is like iter
, except only yields bits in contained named flags.\nAny unknown bits, or bits not corresponding to a contained flag will not be yielded.
The bitwise exclusive-or (^
) of the bits in two flags values.
The bitwise or (|
) of the bits in each flags value.
The bitwise or (|
) of the bits in two flags values.
The bitwise or (|
) of the bits in each flags value.
extend_one
)extend_one
)|
) of the bits in two flags values.&!
). Read more^
) of the bits in two flags values.Flags::insert
] when value
is true
or [Flags::remove
] when value
is false
.&
) of the bits in two flags values.&!
). Read more^
) of the bits in two flags values.!
) of the bits in a flags value, truncating the result.The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
The bitwise and (&
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
Is OPAQUE (is there no alpha test) recommended as currently in naga there is no\ncandidate intersections yet so currently BLASes without this flag will not have hits.\nNot enabling this makes the BLAS unable to be interacted with in WGSL.
\nNO_DUPLICATE_ANY_HIT_INVOCATION, not useful unless using hal with wgpu, ray-tracing\npipelines are not supported in wgpu so any-hit shaders do not exist. For when any-hit\nshaders are implemented (or experienced users who combine this with an underlying library:\nfor any primitive (triangle or AABB) multiple any-hit shaders sometimes may be invoked\n(especially in AABBs like a sphere), if this flag in present only one hit on a primitive may\ninvoke an any-hit shader.
\nGet a flags value with all bits unset.
\nGet a flags value with all known bits set.
\nGet the underlying bits value.
\nThe returned value is exactly the bits set in this flags value.
\nConvert from a bits value.
\nThis method will return None
if any unknown bits are set.
Convert from a bits value, unsetting any unknown bits.
\nConvert from a bits value exactly.
\nGet a flags value with the bits of a flag with the given name set.
\nThis method will return None
if name
is empty or doesn’t\ncorrespond to any named flag.
Whether any set bits in a source flags value are also set in a target flags value.
\nWhether all set bits in a source flags value are also set in a target flags value.
\nThe bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\nremove
won’t truncate other
, but the !
operator will.
The bitwise exclusive-or (^
) of the bits in two flags values.
Call insert
when value
is true
or remove
when value
is false
.
The bitwise and (&
) of the bits in two flags values.
The bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
The bitwise exclusive-or (^
) of the bits in two flags values.
The bitwise negation (!
) of the bits in a flags value, truncating the result.
Yield a set of contained flags values.
\nEach yielded flags value will correspond to a defined named flag. Any unknown bits\nwill be yielded together as a final flags value.
\nYield a set of contained named flags values.
\nThis method is like iter
, except only yields bits in contained named flags.\nAny unknown bits, or bits not corresponding to a contained flag will not be yielded.
The bitwise exclusive-or (^
) of the bits in two flags values.
self
and other
values to be equal, and is used\nby ==
.source
. Read moreThe bitwise or (|
) of the bits in each flags value.
The bitwise and (&
) of the bits in two flags values.
&
operator.The bitwise or (|
) of the bits in two flags values.
|
operator.The bitwise or (|
) of the bits in two flags values.
The bitwise or (|
) of the bits in each flags value.
extend_one
)extend_one
)The bitwise negation (!
) of the bits in a flags value, truncating the result.
!
operator.The bitwise exclusive-or (^
) of the bits in two flags values.
^
operator.|
) of the bits in two flags values.&!
). Read more^
) of the bits in two flags values.Flags::insert
] when value
is true
or [Flags::remove
] when value
is false
.&
) of the bits in two flags values.&!
). Read more^
) of the bits in two flags values.!
) of the bits in a flags value, truncating the result.The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
-
operator.The bitwise and (&
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
Is OPAQUE (is there no alpha test) recommended as currently in naga there is no\ncandidate intersections yet so currently BLASes without this flag will not have hits.\nNot enabling this makes the BLAS unable to be interacted with in WGSL.
\nNO_DUPLICATE_ANY_HIT_INVOCATION, not useful unless using hal with wgpu, ray-tracing\npipelines are not supported in wgpu so any-hit shaders do not exist. For when any-hit\nshaders are implemented (or experienced users who combine this with an underlying library:\nfor any primitive (triangle or AABB) multiple any-hit shaders sometimes may be invoked\n(especially in AABBs like a sphere), if this flag in present only one hit on a primitive may\ninvoke an any-hit shader.
\nGet a flags value with all bits unset.
\nGet a flags value with all known bits set.
\nGet the underlying bits value.
\nThe returned value is exactly the bits set in this flags value.
\nConvert from a bits value.
\nThis method will return None
if any unknown bits are set.
Convert from a bits value, unsetting any unknown bits.
\nConvert from a bits value exactly.
\nGet a flags value with the bits of a flag with the given name set.
\nThis method will return None
if name
is empty or doesn’t\ncorrespond to any named flag.
Whether any set bits in a source flags value are also set in a target flags value.
\nWhether all set bits in a source flags value are also set in a target flags value.
\nThe bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\nremove
won’t truncate other
, but the !
operator will.
The bitwise exclusive-or (^
) of the bits in two flags values.
Call insert
when value
is true
or remove
when value
is false
.
The bitwise and (&
) of the bits in two flags values.
The bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
The bitwise exclusive-or (^
) of the bits in two flags values.
The bitwise negation (!
) of the bits in a flags value, truncating the result.
Yield a set of contained flags values.
\nEach yielded flags value will correspond to a defined named flag. Any unknown bits\nwill be yielded together as a final flags value.
\nYield a set of contained named flags values.
\nThis method is like iter
, except only yields bits in contained named flags.\nAny unknown bits, or bits not corresponding to a contained flag will not be yielded.
The bitwise exclusive-or (^
) of the bits in two flags values.
The bitwise or (|
) of the bits in each flags value.
The bitwise or (|
) of the bits in two flags values.
The bitwise or (|
) of the bits in each flags value.
extend_one
)extend_one
)|
) of the bits in two flags values.&!
). Read more^
) of the bits in two flags values.Flags::insert
] when value
is true
or [Flags::remove
] when value
is false
.&
) of the bits in two flags values.&!
). Read more^
) of the bits in two flags values.!
) of the bits in a flags value, truncating the result.The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
The bitwise and (&
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.\ndifference
won’t truncate other
, but the !
operator will.
self
and other
values to be equal, and is used\nby ==
.source
. Read moreTakes a closure and maps the label of the buffer descriptor into another.
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreTakes a closure and maps the label of the buffer descriptor into another.
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreTakes a closure and maps the label of the command encoder descriptor into another.
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreRemoves the colorspace information from the type.
\nsource
. Read moreRemoves the colorspace information from the type.
\nsource
. Read moreRemoves the colorspace information from the type.
\nRemoves the colorspace information from the type.
\nRemoves the colorspace information from the type.
\nsource
. Read moreTakes a closure and maps the label of the blas descriptor into another.
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreTakes a closure and maps the label of the blas descriptor into another.
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreTakes a closure and maps the label of the blas descriptor into another.
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreTakes a closure and maps the label of the blas descriptor into another.
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreTakes a closure and maps the label of the device descriptor into another.
\nsource
. Read moreTakes a closure and maps the label of the device descriptor into another.
\nsource
. Read moreTakes a closure and maps the label of the query set descriptor into another.
\nsource
. Read moreTakes a closure and maps the label of the query set descriptor into another.
\nsource
. Read moreTakes a closure and maps the label of the render bundle descriptor into another.
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreTakes a closure and maps the label of the render bundle descriptor into another.
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreself
and other
values to be equal, and is used\nby ==
.source
. Read moreself
and other
values to be equal, and is used\nby ==
.source
. Read moreMap view_formats of the texture descriptor into another.
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreMap view_formats of the texture descriptor into another.
\nsource
. Read moresource
. Read moreAdds color space and premultiplied alpha information to make this\ndescriptor tagged.
\nsource
. Read moreAdds color space and premultiplied alpha information to make this\ndescriptor tagged.
\nsource
. Read moreTakes a closure and maps the label of the texture descriptor into another.
\nMaps the label and view_formats of the texture descriptor into another.
\nCalculates the extent at a given mip level.
\nIf the given mip level is larger than possible, returns None.
\nTreats the depth as part of the mipmaps. If calculating\nfor a 2DArray texture, which does not mipmap depth, set depth to 1.
\n\nlet desc = TextureDescriptor {\n label: (),\n size: wgpu::Extent3d { width: 100, height: 60, depth_or_array_layers: 1 },\n mip_level_count: 7,\n sample_count: 1,\n dimension: wgpu::TextureDimension::D3,\n format: wgpu::TextureFormat::Rgba8Sint,\n usage: wgpu::TextureUsages::empty(),\n view_formats: &[],\n};\n\nassert_eq!(desc.mip_level_size(0), Some(wgpu::Extent3d { width: 100, height: 60, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(1), Some(wgpu::Extent3d { width: 50, height: 30, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(2), Some(wgpu::Extent3d { width: 25, height: 15, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(3), Some(wgpu::Extent3d { width: 12, height: 7, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(4), Some(wgpu::Extent3d { width: 6, height: 3, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(5), Some(wgpu::Extent3d { width: 3, height: 1, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(6), Some(wgpu::Extent3d { width: 1, height: 1, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(7), None);
Computes the render extent of this texture.
\nhttps://gpuweb.github.io/gpuweb/#abstract-opdef-compute-render-extent
\nReturns the number of array layers.
\nhttps://gpuweb.github.io/gpuweb/#abstract-opdef-array-layer-count
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreTakes a closure and maps the label of the texture descriptor into another.
\nMaps the label and view_formats of the texture descriptor into another.
\nCalculates the extent at a given mip level.
\nIf the given mip level is larger than possible, returns None.
\nTreats the depth as part of the mipmaps. If calculating\nfor a 2DArray texture, which does not mipmap depth, set depth to 1.
\n\nlet desc = TextureDescriptor {\n label: (),\n size: wgpu::Extent3d { width: 100, height: 60, depth_or_array_layers: 1 },\n mip_level_count: 7,\n sample_count: 1,\n dimension: wgpu::TextureDimension::D3,\n format: wgpu::TextureFormat::Rgba8Sint,\n usage: wgpu::TextureUsages::empty(),\n view_formats: &[],\n};\n\nassert_eq!(desc.mip_level_size(0), Some(wgpu::Extent3d { width: 100, height: 60, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(1), Some(wgpu::Extent3d { width: 50, height: 30, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(2), Some(wgpu::Extent3d { width: 25, height: 15, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(3), Some(wgpu::Extent3d { width: 12, height: 7, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(4), Some(wgpu::Extent3d { width: 6, height: 3, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(5), Some(wgpu::Extent3d { width: 3, height: 1, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(6), Some(wgpu::Extent3d { width: 1, height: 1, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(7), None);
Computes the render extent of this texture.
\nhttps://gpuweb.github.io/gpuweb/#abstract-opdef-compute-render-extent
\nReturns the number of array layers.
\nhttps://gpuweb.github.io/gpuweb/#abstract-opdef-array-layer-count
\nself
and other
values to be equal, and is used\nby ==
.source
. Read moreTakes a closure and maps the label of the texture descriptor into another.
\nMaps the label and view_formats of the texture descriptor into another.
\nCalculates the extent at a given mip level.
\nIf the given mip level is larger than possible, returns None.
\nTreats the depth as part of the mipmaps. If calculating\nfor a 2DArray texture, which does not mipmap depth, set depth to 1.
\n\nlet desc = TextureDescriptor {\n label: (),\n size: wgpu::Extent3d { width: 100, height: 60, depth_or_array_layers: 1 },\n mip_level_count: 7,\n sample_count: 1,\n dimension: wgpu::TextureDimension::D3,\n format: wgpu::TextureFormat::Rgba8Sint,\n usage: wgpu::TextureUsages::empty(),\n view_formats: &[],\n};\n\nassert_eq!(desc.mip_level_size(0), Some(wgpu::Extent3d { width: 100, height: 60, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(1), Some(wgpu::Extent3d { width: 50, height: 30, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(2), Some(wgpu::Extent3d { width: 25, height: 15, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(3), Some(wgpu::Extent3d { width: 12, height: 7, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(4), Some(wgpu::Extent3d { width: 6, height: 3, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(5), Some(wgpu::Extent3d { width: 3, height: 1, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(6), Some(wgpu::Extent3d { width: 1, height: 1, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(7), None);
Computes the render extent of this texture.
\nhttps://gpuweb.github.io/gpuweb/#abstract-opdef-compute-render-extent
\nReturns the number of array layers.
\nhttps://gpuweb.github.io/gpuweb/#abstract-opdef-array-layer-count
\nTakes a closure and maps the label of the texture descriptor into another.
\nMaps the label and view_formats of the texture descriptor into another.
\nCalculates the extent at a given mip level.
\nIf the given mip level is larger than possible, returns None.
\nTreats the depth as part of the mipmaps. If calculating\nfor a 2DArray texture, which does not mipmap depth, set depth to 1.
\n\nlet desc = TextureDescriptor {\n label: (),\n size: wgpu::Extent3d { width: 100, height: 60, depth_or_array_layers: 1 },\n mip_level_count: 7,\n sample_count: 1,\n dimension: wgpu::TextureDimension::D3,\n format: wgpu::TextureFormat::Rgba8Sint,\n usage: wgpu::TextureUsages::empty(),\n view_formats: &[],\n};\n\nassert_eq!(desc.mip_level_size(0), Some(wgpu::Extent3d { width: 100, height: 60, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(1), Some(wgpu::Extent3d { width: 50, height: 30, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(2), Some(wgpu::Extent3d { width: 25, height: 15, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(3), Some(wgpu::Extent3d { width: 12, height: 7, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(4), Some(wgpu::Extent3d { width: 6, height: 3, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(5), Some(wgpu::Extent3d { width: 3, height: 1, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(6), Some(wgpu::Extent3d { width: 1, height: 1, depth_or_array_layers: 1 }));\nassert_eq!(desc.mip_level_size(7), None);
Computes the render extent of this texture.
\nhttps://gpuweb.github.io/gpuweb/#abstract-opdef-compute-render-extent
\nReturns the number of array layers.
\nhttps://gpuweb.github.io/gpuweb/#abstract-opdef-array-layer-count
\nself
and other
values to be equal, and is used\nby ==
.source
. Read morepub const COPY_BUFFER_ALIGNMENT: u64 = 4; // 4u64
Buffer to buffer copy as well as buffer clear offsets and sizes must be aligned to this number.
+pub const COPY_BUFFER_ALIGNMENT: u64 = 4; // 4u64
Buffer to buffer copy as well as buffer clear offsets and sizes must be aligned to this number.
pub const COPY_BYTES_PER_ROW_ALIGNMENT: u32 = 256; // 256u32
Buffer-Texture copies must have bytes_per_row
aligned to this number.
pub const COPY_BYTES_PER_ROW_ALIGNMENT: u32 = 256; // 256u32
Buffer-Texture copies must have bytes_per_row
aligned to this number.
This doesn’t apply to Queue::write_texture
.
pub const MAP_ALIGNMENT: u64 = 8; // 8u64
Size to align mappings.
+pub const MAP_ALIGNMENT: u64 = 8; // 8u64
Size to align mappings.
pub const PUSH_CONSTANT_ALIGNMENT: u32 = 4; // 4u32
Alignment all push constants need
+pub const PUSH_CONSTANT_ALIGNMENT: u32 = 4; // 4u32
Alignment all push constants need
pub const QUERY_RESOLVE_BUFFER_ALIGNMENT: u64 = 256; // 256u64
An offset into the query resolve buffer has to be aligned to this.
+pub const QUERY_RESOLVE_BUFFER_ALIGNMENT: u64 = 256; // 256u64
An offset into the query resolve buffer has to be aligned to this.
pub const QUERY_SET_MAX_QUERIES: u32 = 4096; // 4_096u32
Maximum queries in a query set
+pub const QUERY_SET_MAX_QUERIES: u32 = 4096; // 4_096u32
Maximum queries in a query set
pub const QUERY_SIZE: u32 = 8; // 8u32
Size of a single piece of query data.
+pub const QUERY_SIZE: u32 = 8; // 8u32
Size of a single piece of query data.
pub const VERTEX_STRIDE_ALIGNMENT: u64 = 4; // 4u64
Vertex buffer strides have to be aligned to this number.
+pub const VERTEX_STRIDE_ALIGNMENT: u64 = 4; // 4u64
Vertex buffer strides have to be aligned to this number.
#[repr(C)]pub enum AddressMode {
+ Enum wgpu::AddressMode
#[repr(C)]pub enum AddressMode {
ClampToEdge = 0,
Repeat = 1,
MirrorRepeat = 2,
@@ -19,19 +19,19 @@
Requires feature Features::ADDRESS_MODE_CLAMP_TO_BORDER
-0.25 -> border
1.25 -> border
-
source
. Read moresource
. Read moreself
and other
values to be equal, and is used
by ==
.#[repr(C)]pub enum AstcBlock {
+ #[repr(C)]pub enum AstcBlock {
Show 14 variants
B4x4 = 0,
B5x4 = 1,
B5x5 = 2,
@@ -29,19 +29,19 @@
§B10x10 = 11
10x10 block compressed texture. 16 bytes per block (1.28 bit/px).
§B12x10 = 12
12x10 block compressed texture. 16 bytes per block (1.07 bit/px).
§B12x12 = 13
12x12 block compressed texture. 16 bytes per block (0.89 bit/px).
-
#[repr(C)]pub enum AstcChannel {
+ Enum wgpu::AstcChannel
#[repr(C)]pub enum AstcChannel {
Unorm = 0,
UnormSrgb = 1,
Hdr = 2,
@@ -10,19 +10,19 @@
Features::TEXTURE_COMPRESSION_ASTC
must be enabled to use this channel.
§Hdr = 2
floating-point RGBA, linear-color float can be outside of the [0, 1] range.
Features::TEXTURE_COMPRESSION_ASTC_HDR
must be enabled to use this channel.
-
source
. Read moresource
. Read moreself
and other
values to be equal, and is used
by ==
.#[repr(u8)]pub enum Backend {
+ #[repr(u8)]pub enum Backend {
Empty = 0,
Vulkan = 1,
Metal = 2,
@@ -13,20 +13,20 @@
§Dx12 = 3
Direct3D-12 (Windows)
§Gl = 4
OpenGL 3.3+ (Windows), OpenGL ES 3.0+ (Linux, Android, MacOS via Angle), and WebGL2
§BrowserWebGpu = 5
WebGPU in the browser
-