mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 21:48:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
28
Brutal.Texture.Abstractions/Upload/UploadRegion.cs
Normal file
28
Brutal.Texture.Abstractions/Upload/UploadRegion.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
namespace Brutal.TextureApi.Abstractions;
|
||||
|
||||
/// <summary>
|
||||
/// A region of data for uploading to a range of layers within a single level of an image.
|
||||
/// </summary>
|
||||
public class UploadRegion
|
||||
{
|
||||
/// <summary>
|
||||
/// Offset in the staging buffer where this region starts.
|
||||
/// </summary>
|
||||
public ByteSize BufferOffset;
|
||||
|
||||
/// <summary>
|
||||
/// The array (or faces if this is a non-array cube map) layer index this region starts at.
|
||||
/// </summary>
|
||||
public int BaseLayer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of array layers (or faces if this is a non-array cube map)
|
||||
/// this region encompasses.
|
||||
/// </summary>
|
||||
public int LayerCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The mip level that this UploadRegion starts at.
|
||||
/// </summary>
|
||||
public int BaseLevel { get; set; }
|
||||
}
|
||||
Loading…
Reference in a new issue