Remove debugging code, commented code
This commit is contained in:
parent
3519e8fd7c
commit
4a3d56749e
4 changed files with 0 additions and 57 deletions
25
Cargo.lock
generated
25
Cargo.lock
generated
|
@ -5727,9 +5727,6 @@ name = "float-cmp"
|
|||
version = "0.9.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4"
|
||||
dependencies = [
|
||||
"num-traits",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "float-ord"
|
||||
|
@ -7361,7 +7358,6 @@ dependencies = [
|
|||
"rand 0.8.5",
|
||||
"raw-window-handle",
|
||||
"refineable",
|
||||
"renderdoc",
|
||||
"reqwest_client",
|
||||
"resvg",
|
||||
"scap",
|
||||
|
@ -13468,27 +13464,6 @@ dependencies = [
|
|||
"bytecheck",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "renderdoc"
|
||||
version = "0.12.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ac633a08f39bf3268714799bd8c4a1a19c19c203d817d3448bb8b91c97817cf0"
|
||||
dependencies = [
|
||||
"bitflags 2.9.0",
|
||||
"float-cmp",
|
||||
"libloading",
|
||||
"once_cell",
|
||||
"renderdoc-sys",
|
||||
"winapi",
|
||||
"wio",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "renderdoc-sys"
|
||||
version = "1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
|
||||
|
||||
[[package]]
|
||||
name = "repl"
|
||||
version = "0.1.0"
|
||||
|
|
|
@ -130,8 +130,6 @@ lyon = "1.0"
|
|||
workspace-hack.workspace = true
|
||||
libc.workspace = true
|
||||
|
||||
renderdoc = "0.12.1"
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
block = "0.1"
|
||||
cocoa.workspace = true
|
||||
|
|
|
@ -54,13 +54,7 @@ struct GPUState {
|
|||
pixel_shader: ID3D11PixelShader,
|
||||
}
|
||||
|
||||
struct Syncer<T>(T);
|
||||
unsafe impl<T> Send for Syncer<T> {}
|
||||
unsafe impl<T> Sync for Syncer<T> {}
|
||||
|
||||
struct DirectWriteState {
|
||||
// #[cfg(feature = "enable-renderdoc")]
|
||||
// renderdoc: Syncer<Arc<RwLock<renderdoc::RenderDoc<renderdoc::V141>>>>,
|
||||
components: DirectWriteComponent,
|
||||
system_ui_font_name: SharedString,
|
||||
system_font_collection: IDWriteFontCollection1,
|
||||
|
@ -236,8 +230,6 @@ impl DirectWriteTextSystem {
|
|||
let system_ui_font_name = get_system_ui_font_name();
|
||||
|
||||
Ok(Self(RwLock::new(DirectWriteState {
|
||||
// #[cfg(feature = "enable-renderdoc")]
|
||||
// renderdoc: Syncer(Arc::new(RwLock::new(renderdoc::RenderDoc::new().unwrap()))),
|
||||
components,
|
||||
system_ui_font_name,
|
||||
system_font_collection,
|
||||
|
@ -1156,12 +1148,6 @@ impl DirectWriteState {
|
|||
texture.unwrap()
|
||||
};
|
||||
|
||||
// #[cfg(feature = "enable-renderdoc")]
|
||||
// self.renderdoc
|
||||
// .0
|
||||
// .write()
|
||||
// .start_frame_capture(std::ptr::null(), std::ptr::null());
|
||||
|
||||
let device_context = &gpu_state.device_context;
|
||||
unsafe { device_context.IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP) };
|
||||
unsafe { device_context.VSSetShader(&gpu_state.vertex_shader, None) };
|
||||
|
@ -1239,14 +1225,6 @@ impl DirectWriteState {
|
|||
};
|
||||
}
|
||||
|
||||
// #[cfg(feature = "enable-renderdoc")]
|
||||
// self.renderdoc
|
||||
// .0
|
||||
// .write()
|
||||
// .end_frame_capture(std::ptr::null(), std::ptr::null());
|
||||
|
||||
println!("render finished");
|
||||
|
||||
Ok(rasterized)
|
||||
}
|
||||
|
||||
|
@ -1893,11 +1871,6 @@ fn get_name(string: IDWriteLocalizedStrings, locale: &str) -> Result<String> {
|
|||
Ok(String::from_utf16_lossy(&name_vec[..name_length]))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn translate_color(color: &DWRITE_COLOR_F) -> [f32; 4] {
|
||||
[color.r, color.g, color.b, color.a]
|
||||
}
|
||||
|
||||
fn get_system_ui_font_name() -> SharedString {
|
||||
unsafe {
|
||||
let mut info: LOGFONTW = std::mem::zeroed();
|
||||
|
|
|
@ -175,10 +175,7 @@ impl DirectXRenderer {
|
|||
}
|
||||
|
||||
fn pre_draw(&self) -> Result<()> {
|
||||
#[cfg(not(feature = "enable-renderdoc"))]
|
||||
let premultiplied_alpha = 1;
|
||||
#[cfg(feature = "enable-renderdoc")]
|
||||
let premultiplied_alpha = 0;
|
||||
|
||||
update_buffer(
|
||||
&self.devices.device_context,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue