mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,54 @@
|
|||
namespace Brutal.VulkanApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkShaderResourceUsageAMD.html">VkShaderResourceUsageAMD</see> - Resource usage information about a particular shader within a pipeline
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The <c>VkShaderResourceUsageAMD</c> structure is defined as:
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// // Provided by VK_AMD_shader_info
|
||||
/// typedef struct VkShaderResourceUsageAMD {
|
||||
/// uint32_t numUsedVgprs;
|
||||
/// uint32_t numUsedSgprs;
|
||||
/// uint32_t ldsSizePerLocalWorkGroup;
|
||||
/// size_t ldsUsageSizeInBytes;
|
||||
/// size_t scratchMemUsageInBytes;
|
||||
/// } VkShaderResourceUsageAMD;
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32)]
|
||||
public partial struct VkShaderResourceUsageAMD()
|
||||
{
|
||||
/// <summary>
|
||||
/// <c>NumUsedVgprs</c> is the number of vector instruction general-purpose registers used by this shader.
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public int NumUsedVgprs;
|
||||
|
||||
/// <summary>
|
||||
/// <c>NumUsedSgprs</c> is the number of scalar instruction general-purpose registers used by this shader.
|
||||
/// </summary>
|
||||
[FieldOffset(4)]
|
||||
public int NumUsedSgprs;
|
||||
|
||||
/// <summary>
|
||||
/// <c>LdsSizePerLocalWorkGroup</c> is the maximum local data store size per work group in bytes.
|
||||
/// </summary>
|
||||
[FieldOffset(8)]
|
||||
public int LdsSizePerLocalWorkGroup;
|
||||
|
||||
/// <summary>
|
||||
/// <c>LdsUsageSizeInBytes</c> is the LDS usage size in bytes per work group by this shader.
|
||||
/// </summary>
|
||||
[FieldOffset(16)]
|
||||
public nuint LdsUsageSizeInBytes;
|
||||
|
||||
/// <summary>
|
||||
/// <c>ScratchMemUsageInBytes</c> is the scratch memory usage in bytes by this shader.
|
||||
/// </summary>
|
||||
[FieldOffset(24)]
|
||||
public nuint ScratchMemUsageInBytes;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue