示例#1
0
 /// <summary>
 ///
 /// </summary>
 internal unsafe void MarshalTo(SharpVk.Interop.NVidia.Experimental.ObjectTableDescriptorSetEntry *pointer)
 {
     pointer->Type           = this.Type;
     pointer->Flags          = this.Flags;
     pointer->PipelineLayout = this.PipelineLayout?.handle ?? default(SharpVk.Interop.PipelineLayout);
     pointer->DescriptorSet  = this.DescriptorSet?.handle ?? default(SharpVk.Interop.DescriptorSet);
 }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        internal static unsafe ObjectTableDescriptorSetEntry MarshalFrom(SharpVk.Interop.NVidia.Experimental.ObjectTableDescriptorSetEntry *pointer)
        {
            ObjectTableDescriptorSetEntry result = default(ObjectTableDescriptorSetEntry);

            result.Type           = pointer->Type;
            result.Flags          = pointer->Flags;
            result.PipelineLayout = new SharpVk.PipelineLayout(default(SharpVk.Device), pointer->PipelineLayout);
            result.DescriptorSet  = new SharpVk.DescriptorSet(default(SharpVk.DescriptorPool), pointer->DescriptorSet);
            return(result);
        }