mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
28
brutal.texture/Brutal.Texture/TextureDescriptor.cs
Normal file
28
brutal.texture/Brutal.Texture/TextureDescriptor.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
namespace Brutal.TextureApi;
|
||||
|
||||
/// <summary>
|
||||
/// Transient data which can be used to save a texture to file without requiring an ITexture wrapper
|
||||
/// </summary>
|
||||
public ref struct TextureDescriptor
|
||||
{
|
||||
/// <inheritdoc cref="ITexture.Data"/>
|
||||
public required ReadOnlySpan<byte> Data;
|
||||
|
||||
/// <inheritdoc cref="ITexture.Format"/>
|
||||
public required TextureFormat Format;
|
||||
|
||||
/// <inheritdoc cref="ITexture.Extent"/>
|
||||
public required TexelCount3 Extent;
|
||||
|
||||
/// <inheritdoc cref="ITexture.LayerCount"/>
|
||||
public required int LayerCount;
|
||||
|
||||
/// <inheritdoc cref="ITexture.LevelCount"/>
|
||||
public required int MipmapCount;
|
||||
|
||||
/// <inheritdoc cref="ITexture.FaceCount"/>
|
||||
public required int FaceCount;
|
||||
|
||||
/// <inheritdoc cref="ITexture.IsCubemap"/>
|
||||
public required bool IsCubemap;
|
||||
}
|
||||
Loading…
Reference in a new issue