Ejemplo n.º 1
0
 internal unsafe void MarshalTo(Interop.SamplerCreateInfo *pointer)
 {
     pointer->SType                   = StructureType.SamplerCreateInfo;
     pointer->Next                    = null;
     pointer->Flags                   = this.Flags;
     pointer->MagFilter               = this.MagFilter;
     pointer->MinFilter               = this.MinFilter;
     pointer->MipmapMode              = this.MipmapMode;
     pointer->AddressModeU            = this.AddressModeU;
     pointer->AddressModeV            = this.AddressModeV;
     pointer->AddressModeW            = this.AddressModeW;
     pointer->MipLodBias              = this.MipLodBias;
     pointer->AnisotropyEnable        = this.AnisotropyEnable;
     pointer->MaxAnisotropy           = this.MaxAnisotropy;
     pointer->CompareEnable           = this.CompareEnable;
     pointer->CompareOp               = this.CompareOp;
     pointer->MinLod                  = this.MinLod;
     pointer->MaxLod                  = this.MaxLod;
     pointer->BorderColor             = this.BorderColor;
     pointer->UnnormalizedCoordinates = this.UnnormalizedCoordinates;
 }
Ejemplo n.º 2
0
 internal SamplerCreateInfo(Interop.SamplerCreateInfo* ptr)
 {
     m = ptr;
     Initialize ();
 }
Ejemplo n.º 3
0
 public SamplerCreateInfo()
 {
     m = (Interop.SamplerCreateInfo*) Interop.Structure.Allocate (typeof (Interop.SamplerCreateInfo));
     Initialize ();
 }