//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
///
///
/// C++:
/// imgui.h:190
///
struct ImTextureData
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 88)]
public partial struct ImTextureData
{
///
///
/// w - // [DEBUG] Sequential index to facilitate identifying a texture when debugging/printing. Unique
/// per atlas.
///
///
/// C++:
/// imgui.h:3568
///
int UniqueID
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(0)]
public int UniqueID;
///
///
/// rw rw // ImTextureStatus_OK/_WantCreate/_WantUpdates/_WantDestroy. Always use SetStatus() to modify!
///
///
/// C++:
/// imgui.h:3569
///
ImTextureStatus Status
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(4)]
public ImTextureStatus Status;
///
///
/// - rw // Convenience storage for backend. Some backends may have enough with TexID.
///
///
/// C++:
/// imgui.h:3570
///
void* BackendUserData
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(8)]
public nint BackendUserData;
///
///
/// r w // Backend-specific texture identifier. Always use SetTexID() to modify! The identifier will
/// stored in ImDrawCmd::GetTexID() and passed to backend's RenderDrawData function.
///
///
/// C++:
/// imgui.h:3571
///
ImTextureID TexID
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(16)]
public ImTextureID TexID;
///
///
/// w r // ImTextureFormat_RGBA32 (default) or ImTextureFormat_Alpha8
///
///
/// C++:
/// imgui.h:3572
///
ImTextureFormat Format
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(24)]
public ImTextureFormat Format;
///
///
/// w r // Texture width
///
///
/// C++:
/// imgui.h:3573
///
int Width
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(28)]
public int Width;
///
///
/// w r // Texture height
///
///
/// C++:
/// imgui.h:3574
///
int Height
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(32)]
public int Height;
///
///
/// w r // 4 or 1
///
///
/// C++:
/// imgui.h:3575
///
int BytesPerPixel
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(36)]
public int BytesPerPixel;
///
///
/// w r // Pointer to buffer holding 'Width*Height' pixels and 'Width*Height*BytesPerPixels' bytes.
///
///
/// C++:
/// imgui.h:3576
///
unsigned char* Pixels
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(40)]
public Ptr Pixels;
///
///
/// w r // Bounding box encompassing all past and queued Updates[].
///
///
/// C++:
/// imgui.h:3577
///
ImTextureRect UsedRect
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(48)]
public ImTextureRect UsedRect;
///
///
/// w r // Bounding box encompassing all queued Updates[].
///
///
/// C++:
/// imgui.h:3578
///
ImTextureRect UpdateRect
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(56)]
public ImTextureRect UpdateRect;
///
///
/// w r // Array of individual updates.
///
///
/// C++:
/// imgui.h:3579
///
ImVector<ImTextureRect> Updates
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(64)]
public ImVector Updates;
///
///
/// w r // In order to facilitate handling Status==WantDestroy in some backend: this is a count
/// successive frames where the texture was not used. Always >0 when Status==WantDestroy.
///
///
/// C++:
/// imgui.h:3580
///
int UnusedFrames
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(80)]
public int UnusedFrames;
///
///
/// w r // Number of contexts using this texture. Used during backend shutdown.
///
///
/// C++:
/// imgui.h:3581
///
unsigned short RefCount
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(84)]
public ushort RefCount;
///
///
/// w r // Tell whether our texture data is known to use colors (rather than just white + alpha).
///
///
/// C++:
/// imgui.h:3582
///
bool UseColors
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(86)]
public Bool8 UseColors;
///
///
/// rw - // [Internal] Queued to set ImTextureStatus_WantDestroy next frame. May still be used in the
/// current frame.
///
///
/// C++:
/// imgui.h:3583
///
bool WantDestroyNextFrame
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
[FieldOffset(87)]
public Bool8 WantDestroyNextFrame;
}
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
///
///
/// C++:
/// imgui.h:190
///
struct ImTextureData
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
public unsafe partial struct ImTextureDataPtr(ImTextureData* ptr) : INullable
{
private ImTextureData* _ptr = ptr;
public ImTextureData* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImTextureDataPtr(ImTextureData* ptr) => new(ptr);
public static implicit operator ImTextureData*(ImTextureDataPtr wrapper) => wrapper.Ptr;
///
///
/// w - // [DEBUG] Sequential index to facilitate identifying a texture when debugging/printing. Unique
/// per atlas.
///
///
/// C++:
/// imgui.h:3568
///
int UniqueID
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref int UniqueID => ref Unsafe.AsRef(&_ptr->UniqueID);
///
///
/// rw rw // ImTextureStatus_OK/_WantCreate/_WantUpdates/_WantDestroy. Always use SetStatus() to modify!
///
///
/// C++:
/// imgui.h:3569
///
ImTextureStatus Status
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref ImTextureStatus Status => ref Unsafe.AsRef(&_ptr->Status);
///
///
/// - rw // Convenience storage for backend. Some backends may have enough with TexID.
///
///
/// C++:
/// imgui.h:3570
///
void* BackendUserData
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref nint BackendUserData => ref Unsafe.AsRef(&_ptr->BackendUserData);
///
///
/// r w // Backend-specific texture identifier. Always use SetTexID() to modify! The identifier will
/// stored in ImDrawCmd::GetTexID() and passed to backend's RenderDrawData function.
///
///
/// C++:
/// imgui.h:3571
///
ImTextureID TexID
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref ImTextureID TexID => ref Unsafe.AsRef(&_ptr->TexID);
///
///
/// w r // ImTextureFormat_RGBA32 (default) or ImTextureFormat_Alpha8
///
///
/// C++:
/// imgui.h:3572
///
ImTextureFormat Format
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref ImTextureFormat Format => ref Unsafe.AsRef(&_ptr->Format);
///
///
/// w r // Texture width
///
///
/// C++:
/// imgui.h:3573
///
int Width
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref int Width => ref Unsafe.AsRef(&_ptr->Width);
///
///
/// w r // Texture height
///
///
/// C++:
/// imgui.h:3574
///
int Height
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref int Height => ref Unsafe.AsRef(&_ptr->Height);
///
///
/// w r // 4 or 1
///
///
/// C++:
/// imgui.h:3575
///
int BytesPerPixel
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref int BytesPerPixel => ref Unsafe.AsRef(&_ptr->BytesPerPixel);
///
///
/// w r // Pointer to buffer holding 'Width*Height' pixels and 'Width*Height*BytesPerPixels' bytes.
///
///
/// C++:
/// imgui.h:3576
///
unsigned char* Pixels
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref Ptr Pixels => ref Unsafe.AsRef>(&_ptr->Pixels);
///
///
/// w r // Bounding box encompassing all past and queued Updates[].
///
///
/// C++:
/// imgui.h:3577
///
ImTextureRect UsedRect
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref ImTextureRect UsedRect => ref Unsafe.AsRef(&_ptr->UsedRect);
///
///
/// w r // Bounding box encompassing all queued Updates[].
///
///
/// C++:
/// imgui.h:3578
///
ImTextureRect UpdateRect
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref ImTextureRect UpdateRect => ref Unsafe.AsRef(&_ptr->UpdateRect);
///
///
/// w r // Array of individual updates.
///
///
/// C++:
/// imgui.h:3579
///
ImVector<ImTextureRect> Updates
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref ImVector Updates => ref Unsafe.AsRef>(&_ptr->Updates);
///
///
/// w r // In order to facilitate handling Status==WantDestroy in some backend: this is a count
/// successive frames where the texture was not used. Always >0 when Status==WantDestroy.
///
///
/// C++:
/// imgui.h:3580
///
int UnusedFrames
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref int UnusedFrames => ref Unsafe.AsRef(&_ptr->UnusedFrames);
///
///
/// w r // Number of contexts using this texture. Used during backend shutdown.
///
///
/// C++:
/// imgui.h:3581
///
unsigned short RefCount
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref ushort RefCount => ref Unsafe.AsRef(&_ptr->RefCount);
///
///
/// w r // Tell whether our texture data is known to use colors (rather than just white + alpha).
///
///
/// C++:
/// imgui.h:3582
///
bool UseColors
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref bool UseColors => ref Unsafe.AsRef(&_ptr->UseColors);
///
///
/// rw - // [Internal] Queued to set ImTextureStatus_WantDestroy next frame. May still be used in the
/// current frame.
///
///
/// C++:
/// imgui.h:3583
///
bool WantDestroyNextFrame
///
///
///
///
/// Specs and pixel storage for a texture used by Dear ImGui.
/// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.
/// Renderer Backends will create a GPU-side version of this.
/// Why does we store two identifiers: TexID and BackendUserData?
/// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.
/// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.
/// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend
///
///
public ref bool WantDestroyNextFrame => ref Unsafe.AsRef(&_ptr->WantDestroyNextFrame);
}
}