Added helper functions to BindGroupLayout.Entry (#213)
* gpu: Added helper functions to BindGroupLayout.Entry * gpu: Changed default values for *.BindingLayout structures. Added comments for helpers.
This commit is contained in:
parent
a943fbed3e
commit
9ed6f6ca8b
5 changed files with 91 additions and 13 deletions
|
|
@ -39,9 +39,9 @@ pub const PrimitiveState = struct {
|
|||
|
||||
pub const StorageTextureBindingLayout = extern struct {
|
||||
reserved: ?*anyopaque = null,
|
||||
access: StorageTextureAccess,
|
||||
access: StorageTextureAccess = .write_only,
|
||||
format: Texture.Format,
|
||||
view_dimension: TextureView.Dimension,
|
||||
view_dimension: TextureView.Dimension = .dimension_2d,
|
||||
};
|
||||
|
||||
pub const DepthStencilState = struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue