internal unsafe void MarshalTo(Interop.PipelineVertexInputStateCreateInfo *pointer) { pointer->SType = StructureType.PipelineVertexInputStateCreateInfo; pointer->Next = null; //VertexBindingDescriptions if (this.VertexBindingDescriptions != null) { pointer->VertexBindingDescriptions = (VertexInputBindingDescription *)Interop.HeapUtil.Allocate <VertexInputBindingDescription>(this.VertexBindingDescriptions.Length).ToPointer(); for (int index = 0; index < this.VertexBindingDescriptions.Length; index++) { pointer->VertexBindingDescriptions[index] = this.VertexBindingDescriptions[index]; } } else { pointer->VertexBindingDescriptions = null; } //VertexAttributeDescriptions if (this.VertexAttributeDescriptions != null) { pointer->VertexAttributeDescriptions = (VertexInputAttributeDescription *)Interop.HeapUtil.Allocate <VertexInputAttributeDescription>(this.VertexAttributeDescriptions.Length).ToPointer(); for (int index = 0; index < this.VertexAttributeDescriptions.Length; index++) { pointer->VertexAttributeDescriptions[index] = this.VertexAttributeDescriptions[index]; } } else { pointer->VertexAttributeDescriptions = null; } pointer->VertexBindingDescriptionCount = (uint)(this.VertexBindingDescriptions?.Length ?? 0); pointer->VertexAttributeDescriptionCount = (uint)(this.VertexAttributeDescriptions?.Length ?? 0); pointer->Flags = this.Flags; }
internal PipelineVertexInputStateCreateInfo(Interop.PipelineVertexInputStateCreateInfo* ptr) { m = ptr; Initialize (); }
public PipelineVertexInputStateCreateInfo() { m = (Interop.PipelineVertexInputStateCreateInfo*) Interop.Structure.Allocate (typeof (Interop.PipelineVertexInputStateCreateInfo)); Initialize (); }