indices.as_slice(),
);
+ gpu.debug_name_buffer(vertex_buffer.to_arg(), "vertex");
+ gpu.debug_name_buffer(index_buffer.to_arg(), "index");
+
Model {
indices: indices.len() as u32,
vertex_buffer,
mip_levels: 1,
});
+ gpu.debug_name_image(image, path.as_ref().to_string_lossy().as_ref());
+
gpu.cmd_barrier(
cmd_encoder,
None,
mip_levels: 1,
});
+ gpu.debug_name_image(image, path.as_ref().to_string_lossy().as_ref());
+
gpu.cmd_barrier(
cmd_encoder,
None,
{
let cmd_encoder = &mut cmd_encoder;
- gpu.cmd_begin_marker(cmd_encoder, "image upload", microshades::BROWN_RGBA_F32[3]);
+ gpu.cmd_begin_debug_marker(
+ cmd_encoder,
+ "image upload",
+ microshades::BROWN_RGBA_F32[3],
+ );
images = Images {
tony_mc_mapface_lut: load_dds(
),
};
- gpu.cmd_end_marker(cmd_encoder);
+ gpu.cmd_end_debug_marker(cmd_encoder);
}
gpu.submit(frame, cmd_encoder);
mip_levels: 1,
});
+ gpu.debug_name_image(self.glyph_atlas_image, "glyph atlas");
+
gpu.cmd_barrier(
cmd_encoder,
None,
size: bitmap_buffer_size.widen(),
});
+ gpu.debug_name_buffer(self.tile_bitmap_buffer.to_arg(), "tile bitmap");
+
println!("tile_resolution: ({tile_resolution_x},{tile_resolution_y})");
self.tile_resolution_x = tile_resolution_x;
mip_levels: 1,
});
+ gpu.debug_name_image(self.depth_image, "depth");
+
self.rt_image = gpu.create_image(&ImageDesc {
memory_location: MemoryLocation::Device,
host_mapped: false,
mip_levels: 1,
});
+ gpu.debug_name_image(self.rt_image, "render target");
+
self.ui_image = gpu.create_image(&ImageDesc {
memory_location: MemoryLocation::Device,
host_mapped: false,
mip_levels: 1,
});
+ gpu.debug_name_image(self.ui_image, "ui");
+
gpu.cmd_barrier(
cmd_encoder,
None,
// If the atlas has been updated, we need to upload it to the GPU.
if let Some(texture) = glyph_texture {
- gpu.cmd_begin_marker(
+ gpu.cmd_begin_debug_marker(
cmd_encoder,
"upload glyph atlas",
microshades::BROWN_RGBA_F32[3],
)],
);
- gpu.cmd_end_marker(cmd_encoder);
+ gpu.cmd_end_debug_marker(cmd_encoder);
}
gpu.cmd_barrier(
],
);
- gpu.cmd_begin_marker(cmd_encoder, "sharks", microshades::BLUE_RGBA_F32[3]);
+ gpu.cmd_begin_debug_marker(cmd_encoder, "sharks", microshades::BLUE_RGBA_F32[3]);
gpu.cmd_begin_rendering(
cmd_encoder,
gpu.cmd_end_rendering(cmd_encoder);
- gpu.cmd_end_marker(cmd_encoder);
+ gpu.cmd_end_debug_marker(cmd_encoder);
// Render UI
{
- gpu.cmd_begin_marker(
+ gpu.cmd_begin_debug_marker(
cmd_encoder,
"2d primitives",
microshades::PURPLE_RGBA_F32[3],
gpu.cmd_dispatch(cmd_encoder, (self.width + 7) / 8, (self.height + 7) / 8, 1);
- gpu.cmd_end_marker(cmd_encoder);
+ gpu.cmd_end_debug_marker(cmd_encoder);
}
// Display transform and composite
{
- gpu.cmd_begin_marker(
+ gpu.cmd_begin_debug_marker(
cmd_encoder,
"display transform",
microshades::GREEN_RGBA_F32[3],
gpu.cmd_dispatch(cmd_encoder, (self.width + 7) / 8, (self.height + 7) / 8, 1);
- gpu.cmd_end_marker(cmd_encoder);
+ gpu.cmd_end_debug_marker(cmd_encoder);
}
}
gpu.submit(frame, cmd_encoder);