Git Product home page Git Product logo

rust_test's People

Contributors

chris--b avatar sebbbi 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rust_test's Issues

output flickering

Hi

When I run the sdfrender on my nvidia-1050-maxq laptop, it is basically ok but I can notice some flickering on certain positions (see attachment . e.g upper right ). Is this sort of accuracy issue?

rust_test.mp4

could not find `version` in `ash`

Followed your instructions exactly (did not have Rust nor VulkanSDK installed, so they are all the latests stable versions), and cargo run --release --bin rendersdf gives me:

error[E0432]: unresolved import `ash::version`
   --> C:\Users\woute\.cargo\registry\src\github.com-1ecc6299db9ec823\vk-mem-0.2.2\src\lib.rs:753:18
    |
753 |         use ash::version::{DeviceV1_0, DeviceV1_1, InstanceV1_0};
    |                  ^^^^^^^ could not find `version` in `ash`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `vk-mem` due to previous error

Mismatched Types (2 different versions of ash?)

Hey, I tried building this project on a new install of rust and everything but I'm running into a few errors (there are 12 but here are 2 examples):

"error[E0308]: mismatched types
--> src\vulkan_base.rs:351:34
|
351 | physical_device: pdevice,
| ^^^^^^^ expected struct ash::vk::definitions::PhysicalDevice, found struct PhysicalDevice
|
= note: perhaps two different versions of crate ash are being used?

error[E0308]: mismatched types
--> src\vulkan_base.rs:352:25
|
352 | device: device.clone(),
| ^^^^^^^^^^^^^^ expected struct ash::device::Device, found struct vulkan_base::ash::Device
|
= note: perhaps two different versions of crate ash are being used?"

I tried building on various different versions of rust compiler but either they fail to run or they throw the above errors (1.45.0 - 1.50.0). Do you know what might be wrong/if there is a specific rust version I need to use? This is on a Windows machine.

Panic when initializing `ash::Device`

When running in both debug and release modes, I am getting the following error message:

thread 'main' panicked at 'attempted to zero-initialize type `ash::Device`, which is invalid', C:\Users\Sam\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\mem\mod.rs:623:9`

When tracing through in the debugger, this seems to originate in a bug in the vk_mem crate's Default implementation for AllocatorCreateInfo here. Calling AllocatorCreateInfo::Default() initializes the ash::Device struct with mem::zeroed() as seen here, which according to the runtime panic message is invalid (although I'm not familiar with the specific Rust rules which prevent this.)

In order to avoid this bug in the vk_mem crate, the Default::default() call needs to be avoided here and the default values need to be initialized manually, i.e.:

let allocator_create_info = vk_mem::AllocatorCreateInfo {
    physical_device: pdevice,
    device: device.clone(),
    instance: instance.clone(),
    flags: vk_mem::AllocatorCreateFlags::NONE,
    preferred_large_heap_block_size: 0,
    frame_in_use_count: 0,
    heap_size_limits: None,
};

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.