mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Added Attachment.numLayers needed for viewport layer array support.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user