Skip to content

Panic when running example #2

@HugoPeters1024

Description

@HugoPeters1024

cargo run --example example yields the following panic:

    descriptor_pool_desc: DescriptorPoolDesc {
        sets_max_num: 75,
        constant_buffers_max_num: 60,
        samplers_max_num: 300,
        textures_max_num: 514,
        storage_textures_max_num: 189,
    },
}
[
    DispatchDesc {
        name: "Clear (f)",
        resources: [
            ResourceDesc {
                state_needed: StorageTexture,
                ty: TRANSIENT_POOL,
                index_in_pool: 5,
                mip_offset: 0,
                mip_num: 1,
            },
        ],
thread 'main' panicked at library/core/src/panicking.rs:215:5:
unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
[1]    98977 IOT instruction (core dumped)  cargo run --example example

version info

rustc 1.79.0-nightly (9d79cd5f7 2024-04-05)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions