mirror of
https://github.com/danbulant/cushy
synced 2026-06-20 23:11:12 +00:00
Updating Kludgine for wgpu
The dependence on git is just to let CI run before releasing a kludgine update with wgpu 22.0.0 support.
This commit is contained in:
parent
fbabbdbd99
commit
553c4ab959
3 changed files with 519 additions and 369 deletions
869
Cargo.lock
generated
869
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -22,8 +22,10 @@ tokio = ["dep:tokio"]
|
|||
tokio-multi-thread = ["tokio", "tokio/rt-multi-thread"]
|
||||
|
||||
[dependencies]
|
||||
kludgine = { version = "0.8.0", features = ["app"] }
|
||||
figures = { version = "0.3.0" }
|
||||
kludgine = { git = "https://github.com/khonsulabs/kludgine", features = [
|
||||
"app",
|
||||
] }
|
||||
figures = { git = "https://github.com/khonsulabs/figures" }
|
||||
alot = "0.3"
|
||||
interner = "0.2.1"
|
||||
kempt = "0.2.1"
|
||||
|
|
|
|||
|
|
@ -1795,6 +1795,10 @@ where
|
|||
context.settings.borrow().multisample_count
|
||||
}
|
||||
|
||||
fn memory_hints(_context: &Self::Context) -> wgpu::MemoryHints {
|
||||
wgpu::MemoryHints::MemoryUsage
|
||||
}
|
||||
|
||||
fn focus_changed(
|
||||
&mut self,
|
||||
window: kludgine::app::Window<'_, WindowCommand>,
|
||||
|
|
@ -2667,7 +2671,7 @@ impl CushyWindow {
|
|||
/// commands were submitted.
|
||||
pub fn render(
|
||||
&mut self,
|
||||
pass: &wgpu::RenderPassDescriptor<'_, '_>,
|
||||
pass: &wgpu::RenderPassDescriptor<'_>,
|
||||
device: &wgpu::Device,
|
||||
queue: &wgpu::Queue,
|
||||
) -> Option<wgpu::SubmissionIndex> {
|
||||
|
|
@ -2680,7 +2684,7 @@ impl CushyWindow {
|
|||
/// commands were submitted.
|
||||
pub fn render_with(
|
||||
&mut self,
|
||||
pass: &wgpu::RenderPassDescriptor<'_, '_>,
|
||||
pass: &wgpu::RenderPassDescriptor<'_>,
|
||||
device: &wgpu::Device,
|
||||
queue: &wgpu::Queue,
|
||||
additional_drawing: Option<&Drawing>,
|
||||
|
|
@ -2876,7 +2880,7 @@ impl VirtualWindow {
|
|||
/// commands were submitted.
|
||||
pub fn render(
|
||||
&mut self,
|
||||
pass: &wgpu::RenderPassDescriptor<'_, '_>,
|
||||
pass: &wgpu::RenderPassDescriptor<'_>,
|
||||
device: &wgpu::Device,
|
||||
queue: &wgpu::Queue,
|
||||
) -> Option<wgpu::SubmissionIndex> {
|
||||
|
|
@ -2889,7 +2893,7 @@ impl VirtualWindow {
|
|||
/// commands were submitted.
|
||||
pub fn render_with(
|
||||
&mut self,
|
||||
pass: &wgpu::RenderPassDescriptor<'_, '_>,
|
||||
pass: &wgpu::RenderPassDescriptor<'_>,
|
||||
device: &wgpu::Device,
|
||||
queue: &wgpu::Queue,
|
||||
additional_drawing: Option<&Drawing>,
|
||||
|
|
@ -3298,6 +3302,7 @@ where
|
|||
label: None,
|
||||
required_features: Kludgine::REQURED_FEATURES,
|
||||
required_limits: Kludgine::adjust_limits(wgpu::Limits::downlevel_webgl2_defaults()),
|
||||
memory_hints: wgpu::MemoryHints::MemoryUsage,
|
||||
},
|
||||
None,
|
||||
))?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue