コード例 #1
0
 public D3D11()
 {
     device = DeviceUtil.Create11(DeviceCreationFlags.BgraSupport);
     if (device == null)
     {
         throw new NotSupportedException();
     }
 }
コード例 #2
0
 public D3D11(FeatureLevel minLevel)
 {
     device = DeviceUtil.Create11(DeviceCreationFlags.BgraSupport, minLevel);
     if (device == null)
     {
         throw new NotSupportedException();
     }
 }
コード例 #3
0
 public D3D11(Adapter a)
 {
     if (a == null)
     {
         device = DeviceUtil.Create11(DeviceCreationFlags.BgraSupport, FeatureLevel.Level_11_0);
         if (device == null)
         {
             throw new NotSupportedException();
         }
     }
     device = new Device(a);
 }