mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
43 lines
1.6 KiB
C#
43 lines
1.6 KiB
C#
namespace Brutal.VulkanApi
|
|
{
|
|
/// <summary>
|
|
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkMicromapUsageKHR.html">VkMicromapUsageKHR</see> - Structure specifying the usage information used to build a micromap
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// :refpage: VkMicromapUsageKHR
|
|
/// </para>
|
|
/// <para>
|
|
/// The <c>VkMicromapUsageKHR</c> structure is defined as:
|
|
/// </para>
|
|
/// <code>
|
|
/// // Provided by VK_KHR_opacity_micromap
|
|
/// typedef struct VkMicromapUsageKHR {
|
|
/// uint32_t count;
|
|
/// uint32_t subdivisionLevel;
|
|
/// VkOpacityMicromapFormatKHR format;
|
|
/// } VkMicromapUsageKHR;
|
|
/// </code>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 12)]
|
|
public partial struct VkMicromapUsageKHR()
|
|
{
|
|
/// <summary>
|
|
/// <c>Count</c> is the number of triangles in the usage format defined by the <c>subdivisionLevel</c> and <c>format</c> below in the micromap
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public int Count;
|
|
|
|
/// <summary>
|
|
/// <c>SubdivisionLevel</c> is the subdivision level of this usage format
|
|
/// </summary>
|
|
[FieldOffset(4)]
|
|
public int SubdivisionLevel;
|
|
|
|
/// <summary>
|
|
/// <c>Format</c> is the format of this usage format
|
|
/// </summary>
|
|
[FieldOffset(8)]
|
|
public VkOpacityMicromapFormatKHR Format;
|
|
}
|
|
}
|