Skip to content

Using vcc without the runtime/scheduler stuff? #43

@expenses

Description

@expenses

Hi, I'm attempting to use vcc and tried compiling the shader from #40 (comment) with vcc x.c -o x.c.spv. This seems to generate a spir-v binary that has a lot of extra elements, but most problematically it has this descriptor set for lifted globals:

               OpDecorate %_arr_v2float_uint_3 ArrayStride 8
               OpDecorate %_arr_v3float_uint_3 ArrayStride 12
               OpDecorate %_struct_6 Block
               OpMemberDecorate %_struct_6 0 Offset 0
               OpMemberDecorate %_struct_6 1 Offset 64
               OpDecorate %lifted_globals DescriptorSet 0
               OpDecorate %lifted_globals Binding 0
               OpDecorate %_arr_uint_ulong_17 ArrayStride 4
               OpMemberDecorate %_struct_26 0 Offset 0
               OpMemberDecorate %_struct_26 1 Offset 4
               OpDecorate %SubgroupId BuiltIn SubgroupId

These are not used in the actual shader. Is it possible that get rid of the runtime/scheduler stuff like this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions