示例#1
0
        public static int SizeOfMarshalDirect(this VkPipelineTessellationStateCreateInfo s)
        {
            if (s == null)
            {
                throw new InvalidOperationException("Trying to directly marshal a null.");
            }

            return
                (s.Next.SizeOfMarshalIndirect());
        }
示例#2
0
        public static VkPipelineTessellationStateCreateInfo.Raw *MarshalIndirect(this VkPipelineTessellationStateCreateInfo s, ref byte *unmanaged)
        {
            if (s == null)
            {
                return((VkPipelineTessellationStateCreateInfo.Raw *) 0);
            }
            var result = (VkPipelineTessellationStateCreateInfo.Raw *)unmanaged;

            unmanaged += VkPipelineTessellationStateCreateInfo.Raw.SizeInBytes;
            *result = s.MarshalDirect(ref unmanaged);
            return(result);
        }
示例#3
0
        public static VkPipelineTessellationStateCreateInfo.Raw MarshalDirect(this VkPipelineTessellationStateCreateInfo s, ref byte *unmanaged)
        {
            if (s == null)
            {
                throw new InvalidOperationException("Trying to directly marshal a null.");
            }

            var pNext = s.Next.MarshalIndirect(ref unmanaged);

            VkPipelineTessellationStateCreateInfo.Raw result;
            result.sType = VkStructureType.PipelineTessellationStateCreateInfo;
            result.pNext = pNext;
            result.flags = s.Flags;
            result.patchControlPoints = s.PatchControlPoints;
            return(result);
        }
示例#4
0
 public static int SizeOfMarshalIndirect(this VkPipelineTessellationStateCreateInfo s) =>
 s == null ? 0 : s.SizeOfMarshalDirect() + VkPipelineTessellationStateCreateInfo.Raw.SizeInBytes;