mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
44
brutal.vulkan/Brutal.Vulkan/Generated/Handles/VkImage.gen.cs
Normal file
44
brutal.vulkan/Brutal.Vulkan/Generated/Handles/VkImage.gen.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
namespace Brutal.VulkanApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkImage.html">VkImage</see> - Opaque handle to an image object
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Images are specialized resources that have multi-dimensional access, as
|
||||
/// outlined in the <see href="https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#images">here</see> chapter.
|
||||
/// Images <i>can</i> be used for various purposes, such as <see href="https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#renderpass">rendering
|
||||
/// attachments^</see>, <see href="https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#copies">for copy operations^</see>, or accessed through shaders
|
||||
/// via <see href="https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#descriptors">resource descriptors^</see>.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Images are represented by <c>VkImage</c> handles:
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// // Provided by VK_VERSION_1_0
|
||||
/// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImage)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public readonly unsafe struct VkImage : IVulkanHandle
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public VkObjectType VkObjectType => VkObjectType.Image;
|
||||
|
||||
/// <inheritdoc />
|
||||
public nint VkHandle { get; }
|
||||
|
||||
/// <summary>Construct from an existing pointer</summary>
|
||||
public VkImage(nint handle)
|
||||
{
|
||||
VkHandle = handle;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsNull()
|
||||
{
|
||||
return VkHandle == 0;
|
||||
}
|
||||
|
||||
public static VkImage NullHandle = new();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue