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

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

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

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

            VkQueryPoolCreateInfo.Raw result;
            result.sType              = VkStructureType.QueryPoolCreateInfo;
            result.pNext              = pNext;
            result.flags              = s.Flags;
            result.queryType          = s.QueryType;
            result.queryCount         = s.QueryCount;
            result.pipelineStatistics = s.PipelineStatistics;
            return(result);
        }
예제 #4
0
 public static int SizeOfMarshalIndirect(this VkQueryPoolCreateInfo s) =>
 s == null ? 0 : s.SizeOfMarshalDirect() + VkQueryPoolCreateInfo.Raw.SizeInBytes;