internal unsafe void MarshalTo(Interop.PipelineMultisampleStateCreateInfo *pointer) { pointer->SType = StructureType.PipelineMultisampleStateCreateInfo; pointer->Next = null; //SampleMask if (this.SampleMask != null && Math.Ceiling((int)RasterizationSamples / (float)32) > 0) { int length = (int)(Math.Ceiling((int)RasterizationSamples / (float)32)); pointer->SampleMask = (SampleMask *)Interop.HeapUtil.Allocate <SampleMask>(length).ToPointer(); for (int index = 0; index < length; index++) { pointer->SampleMask[index] = this.SampleMask[index]; } } else { pointer->SampleMask = null; } pointer->Flags = this.Flags; pointer->RasterizationSamples = this.RasterizationSamples; pointer->SampleShadingEnable = this.SampleShadingEnable; pointer->MinSampleShading = this.MinSampleShading; pointer->AlphaToCoverageEnable = this.AlphaToCoverageEnable; pointer->AlphaToOneEnable = this.AlphaToOneEnable; }
internal PipelineMultisampleStateCreateInfo(Interop.PipelineMultisampleStateCreateInfo* ptr) { m = ptr; Initialize (); }
public PipelineMultisampleStateCreateInfo() { m = (Interop.PipelineMultisampleStateCreateInfo*) Interop.Structure.Allocate (typeof (Interop.PipelineMultisampleStateCreateInfo)); Initialize (); }