コード例 #1
0
ファイル: CTextureSurface.cs プロジェクト: Zulkir/Beholder
 public CTextureSurface(ICDevice device, Texture1DDescription description, SubresourceData[] initialData, Action<CTextureSurface> onRelease)
     : this(device, ResourceDimension.Texture1D, new Texture2DDescription
     {
         Width = description.Width,
         Height = 1,
         MipLevels = description.MipLevels,
         ArraySize = description.ArraySize,
         FormatID = description.FormatID,
         Sampling = Sampling.NoMultisampling,
         Usage = description.Usage,
         BindFlags = description.BindFlags,
         ExtraFlags = description.ExtraFlags,
         MiscFlags = description.MiscFlags                 
     }, initialData, onRelease)
 {
 }
コード例 #2
0
ファイル: CTexture.cs プロジェクト: Zulkir/Beholder
 void ITexture1D.GetDescription(out Texture1DDescription description)
 {
     description = new Texture1DDescription
     {
         Width = desc.Width,
         MipLevels = desc.MipLevels,
         ArraySize = desc.ArraySize,
         FormatID = desc.FormatID,
         Usage = desc.Usage,
         BindFlags = desc.BindFlags,
         MiscFlags = desc.MiscFlags,
         ExtraFlags = desc.ExtraFlags
     };
 }