remove unneeded change
This commit is contained in:
parent
7984e05d35
commit
3be48a9813
2 changed files with 3 additions and 8 deletions
|
@ -175,8 +175,6 @@ impl DirectXRenderer {
|
|||
}
|
||||
|
||||
fn pre_draw(&self) -> Result<()> {
|
||||
let premultiplied_alpha = 1;
|
||||
|
||||
update_buffer(
|
||||
&self.devices.device_context,
|
||||
self.globals.global_params_buffer[0].as_ref().unwrap(),
|
||||
|
@ -185,8 +183,7 @@ impl DirectXRenderer {
|
|||
self.resources.viewport[0].Width,
|
||||
self.resources.viewport[0].Height,
|
||||
],
|
||||
premultiplied_alpha,
|
||||
..Default::default()
|
||||
_pad: 0,
|
||||
}],
|
||||
)?;
|
||||
unsafe {
|
||||
|
@ -822,8 +819,7 @@ impl DirectXGlobalElements {
|
|||
#[repr(C)]
|
||||
struct GlobalParams {
|
||||
viewport_size: [f32; 2],
|
||||
premultiplied_alpha: u32,
|
||||
_pad: u32,
|
||||
_pad: u64,
|
||||
}
|
||||
|
||||
struct PipelineState<T> {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
cbuffer GlobalParams: register(b0) {
|
||||
float2 global_viewport_size;
|
||||
uint premultiplied_alpha;
|
||||
uint _pad;
|
||||
uint2 _pad;
|
||||
};
|
||||
|
||||
Texture2D<float4> t_sprite: register(t0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue