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) { }
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 }; }