Beispiel #1
0
        public SpvDecoration[] GetBufferBlockDecorations(uint id)
        {
            unsafe
            {
                SpvDecoration *decorations_ptr;
                spvc_compiler_get_buffer_block_decorations(Handle,
                                                           id,
                                                           &decorations_ptr,
                                                           out var num_decorations).CheckError();

                var decorations = new SpvDecoration[num_decorations.ToInt32()];

                for (int i = 0; i < decorations.Length; i++)
                {
                    decorations[i] = decorations_ptr[i];
                }

                return(decorations);
            }
        }
Beispiel #2
0
 public static extern void spvc_compiler_unset_decoration(spvc_compiler compiler, uint id, SpvDecoration decoration);
Beispiel #3
0
 public static extern void spvc_compiler_set_member_decoration_string(spvc_compiler compiler, uint id, uint member_index,
                                                                      SpvDecoration decoration, string argument);
Beispiel #4
0
 public static extern void spvc_compiler_set_decoration(spvc_compiler compiler, uint id, SpvDecoration decoration, uint argument);
Beispiel #5
0
 public void SetDecoration(uint id, SpvDecoration decoration, uint argument)
 {
     spvc_compiler_set_decoration(Handle, id, decoration, argument);
 }
Beispiel #6
0
 public void UnsetDecoration(uint id, SpvDecoration decoration)
 {
     spvc_compiler_unset_decoration(Handle, id, decoration);
 }
Beispiel #7
0
 public static extern uint spvc_compiler_get_member_decoration(spvc_compiler compiler, uint id, uint memberIndex, SpvDecoration decoration);
Beispiel #8
0
 public static extern bool spvc_compiler_has_member_decoration(spvc_compiler compiler, uint id,
                                                               uint member_index, SpvDecoration decoration);
Beispiel #9
0
 public string GetMemberDecorationString(uint id, uint memberIndex, SpvDecoration decoration)
 {
     return(Marshal.PtrToStringAnsi(spvc_compiler_get_member_decoration_string(Handle, id, memberIndex, decoration)));
 }
Beispiel #10
0
 public uint GetMemberDecoration(uint id, uint memberIndex, SpvDecoration decoration)
 {
     return(spvc_compiler_get_member_decoration(Handle, id, memberIndex, decoration));
 }
Beispiel #11
0
 public string GetDecorationString(uint id, SpvDecoration decoration)
 {
     return(Marshal.PtrToStringAnsi(spvc_compiler_get_decoration_string(Handle, id, decoration)));
 }
Beispiel #12
0
 public uint GetDecoration(uint id, SpvDecoration decoration)
 {
     return(spvc_compiler_get_decoration(Handle, id, decoration));
 }
Beispiel #13
0
 public bool HasMemberDecoration(uint id, uint memberIndex, SpvDecoration decoration)
 {
     return(spvc_compiler_has_member_decoration(Handle, id, memberIndex, decoration));
 }
Beispiel #14
0
 public bool HasDecoration(uint id, SpvDecoration decoration)
 {
     return(spvc_compiler_has_decoration(Handle, id, decoration));
 }
Beispiel #15
0
 public void UnsetMemberDecoration(uint id, uint memberIndex, SpvDecoration decoration)
 {
     spvc_compiler_unset_member_decoration(Handle, id, memberIndex, decoration);
 }
Beispiel #16
0
 public static extern void spvc_compiler_unset_member_decoration(spvc_compiler compiler, uint id,
                                                                 uint member_index, SpvDecoration decoration);
Beispiel #17
0
 public static extern bool spvc_compiler_has_decoration(spvc_compiler compiler, uint id, SpvDecoration decoration);
Beispiel #18
0
 public bool GetBinaryOffsetForDecoration(uint id, SpvDecoration decoration, out uint wordOffset)
 {
     return(spvc_compiler_get_binary_offset_for_decoration(Handle, id, decoration, out wordOffset));
 }
Beispiel #19
0
 public static extern uint spvc_compiler_get_decoration(spvc_compiler compiler, uint id, SpvDecoration decoration);
Beispiel #20
0
 private static extern bool spvc_compiler_get_binary_offset_for_decoration(IntPtr compiler, uint id, SpvDecoration decoration, out uint word_offset);
Beispiel #21
0
 public static extern IntPtr spvc_compiler_get_member_decoration_string(spvc_compiler compiler, uint id, uint memberIndex, SpvDecoration decoration);
Beispiel #22
0
 public void SetMemberDecoration(uint id, uint memberIndex, SpvDecoration decoration, string argument)
 {
     spvc_compiler_set_member_decoration_string(Handle, id, memberIndex, decoration, argument);
 }