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:
Michal Ziulek 2022-04-10 23:28:44 +02:00 committed by GitHub
parent a943fbed3e
commit 9ed6f6ca8b
Failed to generate hash of commit
5 changed files with 91 additions and 13 deletions

View file

@ -211,9 +211,9 @@ pub const SampleType = enum(u32) {
pub const BindingLayout = extern struct {
reserved: ?*anyopaque = null,
sample_type: SampleType,
view_dimension: TextureView.Dimension,
multisampled: bool,
sample_type: SampleType = .float,
view_dimension: TextureView.Dimension = .dimension_2d,
multisampled: bool = false,
};
pub const DataLayout = extern struct {