gpu: add Texture.DataLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9b5fb77d7f
commit
c0ddbbb514
2 changed files with 7 additions and 7 deletions
|
|
@ -204,13 +204,6 @@ typedef struct WGPUCopyTextureForBrowserOptions {
|
||||||
WGPUAlphaMode dstAlphaMode;
|
WGPUAlphaMode dstAlphaMode;
|
||||||
} WGPUCopyTextureForBrowserOptions;
|
} WGPUCopyTextureForBrowserOptions;
|
||||||
|
|
||||||
typedef struct WGPUTextureDataLayout {
|
|
||||||
WGPUChainedStruct const * nextInChain;
|
|
||||||
uint64_t offset;
|
|
||||||
uint32_t bytesPerRow;
|
|
||||||
uint32_t rowsPerImage;
|
|
||||||
} WGPUTextureDataLayout;
|
|
||||||
|
|
||||||
typedef struct WGPUBindGroupLayoutEntry {
|
typedef struct WGPUBindGroupLayoutEntry {
|
||||||
WGPUChainedStruct const * nextInChain;
|
WGPUChainedStruct const * nextInChain;
|
||||||
uint32_t binding;
|
uint32_t binding;
|
||||||
|
|
|
||||||
|
|
@ -186,6 +186,12 @@ pub const BindingLayout = struct {
|
||||||
multisampled: bool,
|
multisampled: bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const DataLayout = struct {
|
||||||
|
offset: u64,
|
||||||
|
bytes_per_row: u32,
|
||||||
|
rows_per_image: u32,
|
||||||
|
};
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = VTable;
|
_ = VTable;
|
||||||
_ = reference;
|
_ = reference;
|
||||||
|
|
@ -199,4 +205,5 @@ test "syntax" {
|
||||||
_ = SampleType;
|
_ = SampleType;
|
||||||
_ = ViewDimension;
|
_ = ViewDimension;
|
||||||
_ = BindingLayout;
|
_ = BindingLayout;
|
||||||
|
_ = DataLayout;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue