Skip to content

Per-object uniform data #125

@cloudhead

Description

@cloudhead

I may be misunderstanding the API, but it doesn't seem like it's possible to have uniform data (eg. transformations) per object/draw call. I'm guessing this can be done if offsets were passed in to RenderPass::set_bind_group:

            pass.raw.bind_graphics_descriptor_sets(
                &&pipeline_layout_guard[pipeline_layout_id].raw,
                index as usize,
                bind_groups,
                &[], // <--------- here
            );

or if there was access to push constants.

Is there another way to have per-draw uniform data?

I'm refering to this for vulkan: https://github.com/nvpro-samples/gl_vk_threaded_cadscene/blob/master/doc/vulkan_uniforms.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    help requiredWe need community help to make this happen.needs informationFurther information is requestedtype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions