mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
37
Brutal.Vulkan.Abstractions/IImageView.cs
Normal file
37
Brutal.Vulkan.Abstractions/IImageView.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
namespace Brutal.VulkanApi.Abstractions;
|
||||
|
||||
/// <summary>
|
||||
/// Anything that exposes a Vulkan image view. Systems that hold a binding by interface
|
||||
/// (rather than a raw <see cref="VkImageView"/>) can re-resolve the view after the
|
||||
/// underlying resource is recreated, e.g. on a resize.
|
||||
/// </summary>
|
||||
public interface IImageView
|
||||
{
|
||||
/// <summary>
|
||||
/// The current image view handle.
|
||||
/// </summary>
|
||||
VkImageView VkImageView { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Anything that exposes an image together with a subresource range and extent -
|
||||
/// the shape that barrier, copy, and staging helpers operate on.
|
||||
/// </summary>
|
||||
public interface IImageSubresourceRange
|
||||
{
|
||||
/// <summary>
|
||||
/// The image handle.
|
||||
/// </summary>
|
||||
VkImage VkImage { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The subresource range this object covers.
|
||||
/// </summary>
|
||||
VkImageSubresourceRange SubresourceRange { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The extent of the covered region at the range's base mip level (mip 0 of the image
|
||||
/// shifted down by <c>BaseMipLevel</c>, clamped to 1).
|
||||
/// </summary>
|
||||
VkExtent3D Extent { get; }
|
||||
}
|
||||
Loading…
Reference in a new issue