internal static unsafe PhysicalDeviceProperties MarshalFrom(Interop.PhysicalDeviceProperties *value)
        {
            PhysicalDeviceProperties result = new PhysicalDeviceProperties();

            result.ApiVersion    = value->ApiVersion;
            result.DriverVersion = value->DriverVersion;
            int DeviceNameActualLength;

            result.DeviceName        = System.Text.Encoding.UTF8.GetString(Interop.HeapUtil.MarshalFrom(value->DeviceName, Constants.MaxPhysicalDeviceNameSize, out DeviceNameActualLength, true), 0, DeviceNameActualLength);
            result.PipelineCacheUUID = new Guid(Interop.HeapUtil.MarshalFrom(value->PipelineCacheUUID, Constants.UuidSize));
            result.Limits            = PhysicalDeviceLimits.MarshalFrom(&value->Limits);
            result.VendorID          = value->VendorID;
            result.DeviceID          = value->DeviceID;
            result.DeviceType        = value->DeviceType;
            result.SparseProperties  = value->SparseProperties;
            return(result);
        }
Пример #2
0
 internal PhysicalDeviceProperties(Interop.PhysicalDeviceProperties* ptr)
 {
     m = ptr;
     Initialize ();
 }
Пример #3
0
 public PhysicalDeviceProperties()
 {
     m = (Interop.PhysicalDeviceProperties*) Interop.Structure.Allocate (typeof (Interop.PhysicalDeviceProperties));
     Initialize ();
 }