tirbofish/dropbear · commit
c2a063c300e280200f96a7075af98a77334d774b
feature: improved copy and pasting.
feature: improved onrails
perf: changed backend of hitbox wireframe to use DebugDraw instead.
bug: too much GPU usage and redback-runtime is not putting the entities correctly (likely because of the physics).
Signature present but could not be verified.
Unverified
@@ -5,10 +5,10 @@ use glam::{Mat4, Quat, Vec3, Vec4}; use std::sync::Arc; use wgpu::{ BindGroupDescriptor, BindGroupEntry, BindGroupLayoutDescriptor, BindGroupLayoutEntry, - BindingResource, BindingType, BufferBindingType, BufferUsages, CompareFunction, - DepthStencilState, LoadOp, MultisampleState, Operations, PrimitiveState, PrimitiveTopology, - RenderPassColorAttachment, RenderPassDepthStencilAttachment, RenderPassDescriptor, - RenderPipeline, RenderPipelineDescriptor, ShaderStages, StoreOp, TextureFormat, + BindingResource, BindingType, BufferBindingType, BufferUsages, + LoadOp, MultisampleState, Operations, PrimitiveState, PrimitiveTopology, + RenderPassColorAttachment, RenderPassDescriptor, + RenderPipeline, RenderPipelineDescriptor, ShaderStages, StoreOp, VertexBufferLayout, VertexState, }; @@ -510,13 +510,7 @@ impl DebugDrawPipeline { polygon_mode: Default::default(), conservative: false, }, - depth_stencil: Some(DepthStencilState { - format: TextureFormat::Depth32Float, - depth_write_enabled: Some(false), // don't write to depth, just read - depth_compare: Some(CompareFunction::Less), - stencil: Default::default(), - bias: Default::default(), - }), + depth_stencil: None, // do not use depth_stentil multisample: MultisampleState { count: sample_count, mask: !0, @@ -561,14 +555,7 @@ impl DebugDrawPipeline { store: StoreOp::Store, }, })], - depth_stencil_attachment: Some(RenderPassDepthStencilAttachment { - view: &graphics.depth_texture.view, - depth_ops: Some(Operations { - load: LoadOp::Load, // read existing depth - store: StoreOp::Store, - }), - stencil_ops: None, - }), + depth_stencil_attachment: None, timestamp_writes: None, occlusion_query_set: None, multiview_mask: None,
Large diffs are not rendered by default. Showing the first 50 of 1648 lines. Show full diff