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); } }
public static extern void spvc_compiler_unset_decoration(spvc_compiler compiler, uint id, SpvDecoration decoration);
public static extern void spvc_compiler_set_member_decoration_string(spvc_compiler compiler, uint id, uint member_index, SpvDecoration decoration, string argument);
public static extern void spvc_compiler_set_decoration(spvc_compiler compiler, uint id, SpvDecoration decoration, uint argument);
public void SetDecoration(uint id, SpvDecoration decoration, uint argument) { spvc_compiler_set_decoration(Handle, id, decoration, argument); }
public void UnsetDecoration(uint id, SpvDecoration decoration) { spvc_compiler_unset_decoration(Handle, id, decoration); }
public static extern uint spvc_compiler_get_member_decoration(spvc_compiler compiler, uint id, uint memberIndex, SpvDecoration decoration);
public static extern bool spvc_compiler_has_member_decoration(spvc_compiler compiler, uint id, uint member_index, SpvDecoration decoration);
public string GetMemberDecorationString(uint id, uint memberIndex, SpvDecoration decoration) { return(Marshal.PtrToStringAnsi(spvc_compiler_get_member_decoration_string(Handle, id, memberIndex, decoration))); }
public uint GetMemberDecoration(uint id, uint memberIndex, SpvDecoration decoration) { return(spvc_compiler_get_member_decoration(Handle, id, memberIndex, decoration)); }
public string GetDecorationString(uint id, SpvDecoration decoration) { return(Marshal.PtrToStringAnsi(spvc_compiler_get_decoration_string(Handle, id, decoration))); }
public uint GetDecoration(uint id, SpvDecoration decoration) { return(spvc_compiler_get_decoration(Handle, id, decoration)); }
public bool HasMemberDecoration(uint id, uint memberIndex, SpvDecoration decoration) { return(spvc_compiler_has_member_decoration(Handle, id, memberIndex, decoration)); }
public bool HasDecoration(uint id, SpvDecoration decoration) { return(spvc_compiler_has_decoration(Handle, id, decoration)); }
public void UnsetMemberDecoration(uint id, uint memberIndex, SpvDecoration decoration) { spvc_compiler_unset_member_decoration(Handle, id, memberIndex, decoration); }
public static extern void spvc_compiler_unset_member_decoration(spvc_compiler compiler, uint id, uint member_index, SpvDecoration decoration);
public static extern bool spvc_compiler_has_decoration(spvc_compiler compiler, uint id, SpvDecoration decoration);
public bool GetBinaryOffsetForDecoration(uint id, SpvDecoration decoration, out uint wordOffset) { return(spvc_compiler_get_binary_offset_for_decoration(Handle, id, decoration, out wordOffset)); }
public static extern uint spvc_compiler_get_decoration(spvc_compiler compiler, uint id, SpvDecoration decoration);
private static extern bool spvc_compiler_get_binary_offset_for_decoration(IntPtr compiler, uint id, SpvDecoration decoration, out uint word_offset);
public static extern IntPtr spvc_compiler_get_member_decoration_string(spvc_compiler compiler, uint id, uint memberIndex, SpvDecoration decoration);
public void SetMemberDecoration(uint id, uint memberIndex, SpvDecoration decoration, string argument) { spvc_compiler_set_member_decoration_string(Handle, id, memberIndex, decoration, argument); }