d3d11: cleanup todo

This commit is contained in:
chyyran 2023-02-11 01:17:47 -05:00
parent f73cce83d5
commit 800b6e7b4b

View file

@ -149,9 +149,6 @@ impl LutTexture {
)?; )?;
assume_d3d11_init!(staging, "CreateTexture2D"); assume_d3d11_init!(staging, "CreateTexture2D");
// todo: do format conversion (leverage image crate..?
// is this necessary with CopySubresourceRegion)...
context.CopySubresourceRegion( context.CopySubresourceRegion(
&handle, &handle,
0, 0,
@ -191,12 +188,8 @@ impl LutTexture {
context.GenerateMips(&srv) context.GenerateMips(&srv)
} }
// let mut subresource = context.Map(staging, 0, D3D11_MAP_WRITE, 0)?;
// staging.Upd
Ok(LutTexture { Ok(LutTexture {
handle, handle,
// staging,
desc, desc,
image: InputTexture { image: InputTexture {
view: D3D11InputView { view: D3D11InputView {