Giter VIP home page Giter VIP logo

sandbox's Introduction

Sandbox

A sand simulation game

Project icon Download on Flathub Game screenshot

Controls

Basic Controls

  • Click and drag the mouse to place particles
  • + Increases brush size
  • - Decreases brush size
  • Shift Horizontal axis lock
  • Ctrl Vertical axis lock
    • Axis lock - When held, it creates a straight line between where you first started holding it, and the current mouse location (Not enabled for Electricity)

Particle Type Selection

  • D Delete tool
  • S Sand
  • W Water
  • A Acid
  • I Iridium
  • R Replicator
  • P Plant
  • C Cryotheum
  • U Unstable
  • E Electricity
  • L Life
  • F Fire
  • M Mirror
  • G Glitch
  • There are some particles that can't be directly placed, and aren't listed here. Play around, and figure out how to create them!

Misc

  • Space Toggles pause
  • Enter Toggles fullscreen
  • Esc Quits the game
  • Backspace Empty the sandbox
  • 1 Toggle UI on/off
  • 2 Toggle FPS display on/off
  • 3 Toggle profiling display on/off
  • . Advances one frame when paused

sandbox's People

Contributors

dependabot[bot] avatar henryksloan avatar jms55 avatar parasyte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sandbox's Issues

Build failed

My cargo version:

  • cargo 1.49.0 (d00d64df9 2020-12-05)

Toolchain:

  • stable-x86_64-pc-windows-msvc (default)
  • rustc 1.49.0 (e1884a8e3 2020-12-29)

log:

> cargo build
   Compiling bitflags v1.2.1
   Compiling winapi v0.3.9
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.24
   Compiling libc v0.2.82
   Compiling jobserver v0.1.21
   Compiling unicode-xid v0.2.1
   Compiling cfg-if v0.1.10
   Compiling syn v1.0.58
   Compiling log v0.4.13
   Compiling byteorder v1.4.2
   Compiling scopeguard v1.1.0
   Compiling smallvec v1.6.1
   Compiling proc-macro-hack v0.5.19
   Compiling lazy_static v1.4.0
   Compiling autocfg v1.0.1
   Compiling once_cell v1.5.2
   Compiling proc-macro-nested v0.1.7
   Compiling pin-project-lite v0.2.4
   Compiling slab v0.4.2
   Compiling memchr v2.3.4
   Compiling arrayvec v0.5.2
   Compiling futures-core v0.3.12
   Compiling futures-sink v0.3.12
   Compiling bit-vec v0.6.3
   Compiling futures-io v0.3.12
   Compiling pin-utils v0.1.0
   Compiling range-alloc v0.1.1
   Compiling getrandom v0.2.1
   Compiling inplace_it v0.3.2
   Compiling thunderdome v0.3.0
   Compiling wide v0.4.6
   Compiling copyless v0.1.5
   Compiling serde_derive v1.0.119
   Compiling bytemuck v1.5.0
   Compiling serde v1.0.119
   Compiling typed-arena v2.0.1
   Compiling ppv-lite86 v0.2.10
   Compiling pollster v0.2.0
   Compiling lock_api v0.4.2
   Compiling instant v0.1.9
   Compiling cc v1.0.66
   Compiling tracing-core v0.1.17
   Compiling futures-task v0.3.12
   Compiling fxhash v0.2.1
   Compiling futures-channel v0.3.12
   Compiling bit-set v0.5.2
   Compiling spinning_top v0.2.2
   Compiling num-traits v0.2.14
   Compiling wgpu-types v0.6.1
   Compiling flume v0.10.1
   Compiling tracing v0.1.22
   Compiling rand_core v0.6.1
   Compiling raw-window-handle v0.3.3
   Compiling rand_chacha v0.3.0
   Compiling rand_pcg v0.3.0
   Compiling gfx-hal v0.6.0
   Compiling quote v1.0.8
   Compiling rand v0.8.2
   Compiling ultraviolet v0.4.6
   Compiling paste-impl v0.1.18
   Compiling spirv_cross v0.22.2
   Compiling imgui-sys v0.6.0
   Compiling spirv_headers v1.5.0
   Compiling paste v0.1.18
   Compiling simdeez v1.0.6
   Compiling gfx-descriptor v0.2.0
   Compiling gfx-backend-empty v0.6.0
   Compiling gfx-memory v0.2.2
   Compiling simdnoise v3.1.6
   Compiling futures-macro v0.3.12
   Compiling thiserror-impl v1.0.23
   Compiling futures-util v0.3.12
   Compiling parking_lot_core v0.8.2
   Compiling libloading v0.6.7
   Compiling wio v0.2.2
   Compiling thiserror v1.0.23
   Compiling ash v0.31.0
   Compiling d3d12 v0.3.2
   Compiling naga v0.2.0
   Compiling parking_lot v0.11.1
   Compiling imgui v0.6.1
   Compiling winit v0.24.0
   Compiling puffin v0.3.1
   Compiling imgui-winit-support v0.6.1
   Compiling futures-executor v0.3.12
   Compiling futures v0.3.12
   Compiling puffin-imgui v0.5.0
   Compiling gfx-backend-vulkan v0.6.5
   Compiling gfx-auxil v0.7.0
   Compiling gfx-backend-dx11 v0.6.17
   Compiling gfx-backend-dx12 v0.6.13
   Compiling wgpu-core v0.6.5
   Compiling wgpu v0.6.2
error[E0433]: failed to resolve: use of undeclared crate or module `winit`
 --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:4:5
  |
4 | use winit::{
  |     ^^^^^ use of undeclared crate or module `winit`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
 --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:3:5
  |
3 | use wgpu::util::DeviceExt;
  |     ^^^^ use of undeclared crate or module `wgpu`

error[E0432]: unresolved imports `wgpu::util::DeviceExt`, `winit::event_loop::ControlFlow`, `winit::event_loop::EventLoop`, `winit::window::Window`, `winit::window::WindowBuilder`
 --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:3:5
  |
3 | use wgpu::util::DeviceExt;
  |     ^^^^^^^^^^^^^^^^^^^^^
...
6 |     event_loop::{ControlFlow, EventLoop},
  |                  ^^^^^^^^^^^  ^^^^^^^^^
7 |     window::{Window, WindowBuilder},
  |              ^^^^^^  ^^^^^^^^^^^^^

error[E0433]: failed to resolve: use of undeclared crate or module `bytemuck`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:11:30
   |
11 | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)]
   |                              ^^^^^^^^ use of undeclared crate or module `bytemuck`

error[E0433]: failed to resolve: use of undeclared crate or module `bytemuck`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:11:45
   |
11 | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)]
   |                                             ^^^^^^^^ use of undeclared crate or module `bytemuck`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:114:53
    |
114 |         let vs_module = device.create_shader_module(wgpu::include_spirv!("shader.vert.spv"));
    |                                                     ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:115:53
    |
115 |         let fs_module = device.create_shader_module(wgpu::include_spirv!("shader.frag.spv"));
    |                                                     ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:18:22
   |
18 |     fn desc<'a>() -> wgpu::VertexBufferDescriptor<'a> {
   |                      ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:19:9
   |
19 |         wgpu::VertexBufferDescriptor {
   |         ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:20:54
   |
20 |             stride: std::mem::size_of::<Vertex>() as wgpu::BufferAddress,
   |                                                      ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:21:24
   |
21 |             step_mode: wgpu::InputStepMode::Vertex,
   |                        ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:23:17
   |
23 |                 wgpu::VertexAttributeDescriptor {
   |                 ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:26:29
   |
26 |                     format: wgpu::VertexFormat::Float3,
   |                             ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:28:17
   |
28 |                 wgpu::VertexAttributeDescriptor {
   |                 ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:29:64
   |
29 |                     offset: std::mem::size_of::<[f32; 3]>() as wgpu::BufferAddress,
   |                                                                ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:31:29
   |
31 |                     format: wgpu::VertexFormat::Float3,
   |                             ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:64:14
   |
64 |     surface: wgpu::Surface,
   |              ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:65:13
   |
65 |     device: wgpu::Device,
   |             ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:66:12
   |
66 |     queue: wgpu::Queue,
   |            ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:67:14
   |
67 |     sc_desc: wgpu::SwapChainDescriptor,
   |              ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:68:17
   |
68 |     swap_chain: wgpu::SwapChain,
   |                 ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `winit`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:69:11
   |
69 |     size: winit::dpi::PhysicalSize<u32>,
   |           ^^^^^ use of undeclared crate or module `winit`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:70:22
   |
70 |     render_pipeline: wgpu::RenderPipeline,
   |                      ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:72:20
   |
72 |     vertex_buffer: wgpu::Buffer,
   |                    ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:73:19
   |
73 |     index_buffer: wgpu::Buffer,
   |                   ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:83:44
   |
83 |         let instance = wgpu::Instance::new(wgpu::BackendBit::PRIMARY);
   |                                            ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:86:31
   |
86 |             .request_adapter(&wgpu::RequestAdapterOptions {
   |                               ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:87:35
   |
87 |                 power_preference: wgpu::PowerPreference::Default,
   |                                   ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:95:18
   |
95 |                 &wgpu::DeviceDescriptor {
   |                  ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:105:23
    |
105 |         let sc_desc = wgpu::SwapChainDescriptor {
    |                       ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:106:20
    |
106 |             usage: wgpu::TextureUsage::OUTPUT_ATTACHMENT,
    |                    ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:107:21
    |
107 |             format: wgpu::TextureFormat::Bgra8UnormSrgb,
    |                     ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:110:27
    |
110 |             present_mode: wgpu::PresentMode::Fifo,
    |                           ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:118:44
    |
118 |             device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
    |                                            ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:124:62
    |
124 |         let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
    |                                                              ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:127:27
    |
127 |             vertex_stage: wgpu::ProgrammableStageDescriptor {
    |                           ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:131:34
    |
131 |             fragment_stage: Some(wgpu::ProgrammableStageDescriptor {
    |                                  ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:135:39
    |
135 |             rasterization_state: Some(wgpu::RasterizationStateDescriptor {
    |                                       ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:136:29
    |
136 |                 front_face: wgpu::FrontFace::Ccw,
    |                             ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:137:28
    |
137 |                 cull_mode: wgpu::CullMode::Back,
    |                            ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:143:33
    |
143 |             primitive_topology: wgpu::PrimitiveTopology::TriangleList,
    |                                 ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:144:29
    |
144 |             color_states: &[wgpu::ColorStateDescriptor {
    |                             ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:146:30
    |
146 |                 color_blend: wgpu::BlendDescriptor::REPLACE,
    |                              ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:147:30
    |
147 |                 alpha_blend: wgpu::BlendDescriptor::REPLACE,
    |                              ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:148:29
    |
148 |                 write_mask: wgpu::ColorWrite::ALL,
    |                             ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:151:27
    |
151 |             vertex_state: wgpu::VertexStateDescriptor {
    |                           ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:152:31
    |
152 |                 index_format: wgpu::IndexFormat::Uint16,
    |                               ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:160:56
    |
160 |         let vertex_buffer = device.create_buffer_init(&wgpu::util::BufferInitDescriptor {
    |                                                        ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `bytemuck`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:162:23
    |
162 |             contents: bytemuck::cast_slice(VERTICES),
    |                       ^^^^^^^^ use of undeclared crate or module `bytemuck`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:163:20
    |
163 |             usage: wgpu::BufferUsage::VERTEX,
    |                    ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:165:55
    |
165 |         let index_buffer = device.create_buffer_init(&wgpu::util::BufferInitDescriptor {
    |                                                       ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `bytemuck`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:167:23
    |
167 |             contents: bytemuck::cast_slice(INDICES),
    |                       ^^^^^^^^ use of undeclared crate or module `bytemuck`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:168:20
    |
168 |             usage: wgpu::BufferUsage::INDEX,
    |                    ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `winit`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:186:36
    |
186 |     fn resize(&mut self, new_size: winit::dpi::PhysicalSize<u32>) {
    |                                    ^^^^^ use of undeclared crate or module `winit`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:200:40
    |
200 |     fn render(&mut self) -> Result<(), wgpu::SwapChainError> {
    |                                        ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:205:38
    |
205 |             .create_command_encoder(&wgpu::CommandEncoderDescriptor {
    |                                      ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:210:62
    |
210 |             let mut render_pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
    |                                                              ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:211:38
    |
211 |                 color_attachments: &[wgpu::RenderPassColorAttachmentDescriptor {
    |                                      ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:214:26
    |
214 |                     ops: wgpu::Operations {
    |                          ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:215:51
    |
215 |                         load: wgpu::LoadOp::Clear(wgpu::Color {
    |                                                   ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `env_logger`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:240:5
    |
240 |     env_logger::init();
    |     ^^^^^^^^^^ use of undeclared crate or module `env_logger`

error[E0433]: failed to resolve: use of undeclared type `EventLoop`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:241:22
    |
241 |     let event_loop = EventLoop::new();
    |                      ^^^^^^^^^ use of undeclared type `EventLoop`

error[E0433]: failed to resolve: use of undeclared type `WindowBuilder`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:242:18
    |
242 |     let window = WindowBuilder::new().build(&event_loop).unwrap();
    |                  ^^^^^^^^^^^^^ use of undeclared type `WindowBuilder`

error[E0433]: failed to resolve: use of undeclared type `Event`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:251:13
    |
251 |             Event::WindowEvent {
    |             ^^^^^ use of undeclared type `Event`

error[E0433]: failed to resolve: use of undeclared type `WindowEvent`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:257:25
    |
257 |                         WindowEvent::CloseRequested => *control_flow = ControlFlow::Exit,
    |                         ^^^^^^^^^^^ use of undeclared type `WindowEvent`

error[E0433]: failed to resolve: use of undeclared type `ControlFlow`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:257:72
    |
257 |                         WindowEvent::CloseRequested => *control_flow = ControlFlow::Exit,
    |                                                                        ^^^^^^^^^^^ use of undeclared type `ControlFlow`

error[E0433]: failed to resolve: use of undeclared type `WindowEvent`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:258:25
    |
258 |                         WindowEvent::KeyboardInput { input, .. } => match input {
    |                         ^^^^^^^^^^^ use of undeclared type `WindowEvent`

error[E0433]: failed to resolve: use of undeclared type `ElementState`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:260:40
    |
260 | ...                   state: ElementState::Pressed,
    |                              ^^^^^^^^^^^^ use of undeclared type `ElementState`

error[E0433]: failed to resolve: use of undeclared type `VirtualKeyCode`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:261:55
    |
261 | ...                   virtual_keycode: Some(VirtualKeyCode::Escape),
    |                                             ^^^^^^^^^^^^^^ use of undeclared type `VirtualKeyCode`

error[E0433]: failed to resolve: use of undeclared type `ControlFlow`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:263:50
    |
263 | ...                   } => *control_flow = ControlFlow::Exit,
    |                                            ^^^^^^^^^^^ use of undeclared type `ControlFlow`

error[E0433]: failed to resolve: use of undeclared type `WindowEvent`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:266:25
    |
266 |                         WindowEvent::Resized(physical_size) => {
    |                         ^^^^^^^^^^^ use of undeclared type `WindowEvent`

error[E0433]: failed to resolve: use of undeclared type `WindowEvent`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:269:25
    |
269 |                         WindowEvent::ScaleFactorChanged { new_inner_size, .. } => {
    |                         ^^^^^^^^^^^ use of undeclared type `WindowEvent`

error[E0433]: failed to resolve: use of undeclared type `Event`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:277:13
    |
277 |             Event::RedrawRequested(_) => {
    |             ^^^^^ use of undeclared type `Event`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:282:25
    |
282 |                     Err(wgpu::SwapChainError::Lost) => state.resize(state.size),
    |                         ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:284:25
    |
284 |                     Err(wgpu::SwapChainError::OutOfMemory) => *control_flow = ControlFlow::Exit,
    |                         ^^^^ use of undeclared crate or module `wgpu`

error[E0433]: failed to resolve: use of undeclared type `ControlFlow`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:284:79
    |
284 |                     Err(wgpu::SwapChainError::OutOfMemory) => *control_flow = ControlFlow::Exit,
    |                                                                               ^^^^^^^^^^^ use of undeclared type `ControlFlow`

error[E0433]: failed to resolve: use of undeclared type `Event`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:289:13
    |
289 |             Event::MainEventsCleared => {
    |             ^^^^^ use of undeclared type `Event`

error[E0412]: cannot find type `Window` in this scope
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:78:27
   |
78 |     async fn new(window: &Window) -> Self {
   |                           ^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
1  | use futures::io::Window;
   |

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:83:30
   |
83 |         let instance = wgpu::Instance::new(wgpu::BackendBit::PRIMARY);
   |                              ^^^^^^^^ not found in `wgpu`
   |
help: consider importing this struct
   |
1  | use wgc::instance::Instance;
   |

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:96:37
   |
96 |                     features: wgpu::Features::empty(),
   |                                     ^^^^^^^^ not found in `wgpu`
   |
help: consider importing this struct
   |
1  | use wgt::Features;
   |

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
  --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:97:35
   |
97 |                     limits: wgpu::Limits::default(),
   |                                   ^^^^^^ not found in `wgpu`
   |
help: consider importing this struct
   |
1  | use wgt::Limits;
   |

error[E0412]: cannot find type `WindowEvent` in this scope
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:194:33
    |
194 |     fn input(&mut self, event: &WindowEvent) -> bool {
    |                                 ^^^^^^^^^^^ not found in this scope

error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:215:37
    |
215 |                         load: wgpu::LoadOp::Clear(wgpu::Color {
    |                                     ^^^^^^ not found in `wgpu`
    |
help: consider importing this enum
    |
1   | use wgc::command::LoadOp;
    |

error[E0422]: cannot find struct, variant or union type `KeyboardInput` in this scope
   --> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:259:29
    |
259 | ...                   KeyboardInput {
    |                       ^^^^^^^^^^^^^ not found in this scope

error: aborting due to 84 previous errors

Some errors have detailed explanations: E0412, E0422, E0432, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `wgpu`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

Remove Cargo.lock

Remove Cargo.lock

I saw that Cargo.lock is also uploaded in the repository, and it's recommended not to hand it over to anybody who's downloading the source code. Cargo likes to generate this file per-build instead, for obvious reasons.

Cargo will regenerate the same file again when the application will be rebuilt, so there isn't a reason for it to exist, apart from giving your build's copy to everybody else.

Flatpak version crashes on launch

Hi, the flatpak version crashes on launch. Here's the log from the terminal:

flatpak run com.github.jms55.Sandbox
INTEL-MESA: warning: Haswell Vulkan support is incomplete
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/video_recorder.rs:47:39
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

equal op error

Clippy triggers 255.0/255.0 as error

                                particle_selector_button(
                                    im_str!("Cryotheum"),
                                    Some(ParticleType::Cryotheum),
                                    [12.0 / 255.0, 193.0 / 255.0, 255.0 / 255.0],
                                    false,
                                );

Inspiration

I have been studying and building sand sims in my free time and wanted to ask if I could use your repository as inspiration and advice? Currently I am using other game engines to do the window management and ui, but would love to learn winnit for my own personal gain.

thread 'main' panicked at 'wgpu error: Validation Error

When I try to scale the window, it sometimes crashes:

$ RUST_BACKTRACE=1 cargo run --release
    Finished release [optimized] target(s) in 0.07s
     Running `target/release/sandbox`
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In a RenderPass
      note: encoder = `pixels_command_encoder`
    In a set_scissor_rect command
    Scissor Rect { x: 108, y: 10, w: 1352, h: 55 } is not contained in the render target Extent3d { width: 1440, height: 810, depth_or_array_layers: 1 }

', /home/lomirus/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.13.1/src/backend/direct.rs:2391:5
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/90743e7298aca107ddaa0c202a4d3604e29bfeb6/library/core/src/panicking.rs:65:14
   2: core::ops::function::Fn::call
   3: <wgpu::RenderPass as core::ops::drop::Drop>::drop
   4: sandbox::ui::UI::render
   5: pixels::Pixels::render_with
   6: sandbox::main::{{closure}}.14851
   7: winit::platform_impl::platform::x11::EventLoop<T>::run
   8: winit::platform_impl::platform::EventLoop<T>::run
   9: winit::event_loop::EventLoop<T>::run
  10: sandbox::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

System Info:

GPU: NVIDIA 01:00.0 NVIDIA Corporation TU117M
DE: GNOME 43.2 
WM: Mutter
OS: Manjaro Linux x86_64
Windows System: X11

Failing to build

I am trying to build latest and get following error:

error: failed to get `imgui-wgpu` as a dependency of package `sandbox v1.1.0 (/home/admix/github/sandbox)`

Caused by:
  failed to load source for dependency `imgui-wgpu`

Caused by:
  Unable to update https://github.com/cwfitzgerald/imgui-wgpu-rs?branch=wgpu-update#6a9d7e31

Caused by:
  object not found - no match for id (6a9d7e315ada6fa9738b2e6f6cb69e0e3e4a9e4b); class=Odb (9); code=NotFound (-3)

Windows

Is there any way to play this on windows?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.