internal unsafe void MarshalTo(Interop.DescriptorSetLayoutBinding *pointer) { //ImmutableSamplers if (this.ImmutableSamplers != null) { var fieldPointer = (Interop.Sampler *)Interop.HeapUtil.AllocateAndClear <Interop.Sampler>(this.ImmutableSamplers.Length); for (int index = 0; index < this.ImmutableSamplers.Length; index++) { this.ImmutableSamplers[index].MarshalTo(&fieldPointer[index]); } pointer->ImmutableSamplers = fieldPointer; } else { pointer->ImmutableSamplers = null; } pointer->DescriptorCount = (uint)(this.ImmutableSamplers?.Length ?? (int)this.DescriptorCount); pointer->Binding = this.Binding; pointer->DescriptorType = this.DescriptorType; pointer->DescriptorCount = this.DescriptorCount; pointer->StageFlags = this.StageFlags; }
internal DescriptorSetLayoutBinding(Interop.DescriptorSetLayoutBinding* ptr) { m = ptr; }
public DescriptorSetLayoutBinding() { m = (Interop.DescriptorSetLayoutBinding*) Interop.Structure.Allocate (typeof (Interop.DescriptorSetLayoutBinding)); }