gpu: add ImageCopyTexture
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
326d66127e
commit
74b7e66793
2 changed files with 8 additions and 8 deletions
|
|
@ -1,11 +1,3 @@
|
||||||
pub const ImageCopyTexture = extern struct {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
texture: Texture,
|
|
||||||
mip_level: u32,
|
|
||||||
origin: Origin3D,
|
|
||||||
aspect: TextureAspect,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const WGPUProgrammableStageDescriptor = extern struct {
|
pub const WGPUProgrammableStageDescriptor = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
module: ShaderModule,
|
module: ShaderModule,
|
||||||
|
|
|
||||||
|
|
@ -541,6 +541,14 @@ pub const ImageCopyBuffer = extern struct {
|
||||||
buffer: Buffer,
|
buffer: Buffer,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const ImageCopyTexture = extern struct {
|
||||||
|
next_in_chain: *const ChainedStruct,
|
||||||
|
texture: Texture,
|
||||||
|
mip_level: u32,
|
||||||
|
origin: Origin3D,
|
||||||
|
aspect: Texture.Aspect,
|
||||||
|
};
|
||||||
|
|
||||||
test "BackendType name" {
|
test "BackendType name" {
|
||||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue