Added Attachment.numLayers needed for viewport layer array support.

This commit is contained in:
Бранимир Караџић
2020-12-12 10:04:14 -08:00
parent a38b011f23
commit 796acfa98b
13 changed files with 151 additions and 77 deletions

View File

@@ -1030,7 +1030,7 @@ public static class bgfx
DrawIndirect = 0x0000000000000010,
/// <summary>
/// Fragment depth is accessible in fragment shader.
/// Fragment depth is available in fragment shader.
/// </summary>
FragmentDepth = 0x0000000000000020,
@@ -1135,6 +1135,11 @@ public static class bgfx
/// </summary>
VertexId = 0x0000000004000000,
/// <summary>
/// Viewport layer is available in vertex shader.
/// </summary>
ViewportLayerArray = 0x0000000008000000,
/// <summary>
/// All texture compare modes are supported.
/// </summary>
@@ -2122,6 +2127,7 @@ public static class bgfx
public TextureHandle handle;
public uint16 mip;
public uint16 layer;
public uint16 numLayers;
public uint8 resolve;
}
@@ -2287,12 +2293,13 @@ public static class bgfx
///
/// <param name="_handle">Render target texture handle.</param>
/// <param name="_access">Access. See `Access::Enum`.</param>
/// <param name="_layer">Cubemap side or depth layer/slice.</param>
/// <param name="_layer">Cubemap side or depth layer/slice to use.</param>
/// <param name="_numLayers">Number of texture layer/slice(s) in array to use.</param>
/// <param name="_mip">Mip level.</param>
/// <param name="_resolve">Resolve flags. See: `BGFX_RESOLVE_*`</param>
///
[LinkName("bgfx_attachment_init")]
public static extern void attachment_init(Attachment* _this, TextureHandle _handle, Access _access, uint16 _layer, uint16 _mip, uint8 _resolve);
public static extern void attachment_init(Attachment* _this, TextureHandle _handle, Access _access, uint16 _layer, uint16 _numLayers, uint16 _mip, uint8 _resolve);
/// <summary>
/// Start VertexLayout.