Created GpuPrimitiveTolopogy to replace c.WGPUPrimitiveTopology

This commit is contained in:
adrien
2026-05-20 09:37:46 +02:00
parent bcb1b1e98b
commit fc57bee3af
4 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ pub fn init(gloc: GpuAllocator, format: GpuTextureFormat, size: c.WGPUExtent3D,
.usage = use,
.dimension = c.WGPUTextureDimension_2D,
.size = size,
.format = @intCast(@intFromEnum(format)),
.format = @intFromEnum(format),
.mipLevelCount = 1,
.sampleCount = 1,
};