mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
Cleanup.
This commit is contained in:
@@ -4200,7 +4200,7 @@ public static class bgfx
|
||||
/// <param name="_layerIndex">Layer index for texture arrays (only implemented for D3D11).</param>
|
||||
///
|
||||
[LinkName("bgfx_override_internal_texture_ptr")]
|
||||
public static extern void* override_internal_texture_ptr(TextureHandle _handle, void* _ptr, uint32 _layerIndex);
|
||||
public static extern void* override_internal_texture_ptr(TextureHandle _handle, void* _ptr, uint16 _layerIndex);
|
||||
|
||||
/// <summary>
|
||||
/// Override internal texture by creating new texture. Previously created
|
||||
|
||||
@@ -2898,7 +2898,7 @@ extern fn InternalData* get_internal_data() @extern("bgfx_get_internal_data");
|
||||
// _handle : `Texture handle.`
|
||||
// _ptr : `Native API pointer to texture.`
|
||||
// _layerIndex : `Layer index for texture arrays (only implemented for D3D11).`
|
||||
extern fn uptr override_internal_texture_ptr(TextureHandle _handle, uptr _ptr, uint _layerIndex) @extern("bgfx_override_internal_texture_ptr");
|
||||
extern fn uptr override_internal_texture_ptr(TextureHandle _handle, uptr _ptr, ushort _layerIndex) @extern("bgfx_override_internal_texture_ptr");
|
||||
|
||||
// Override internal texture by creating new texture. Previously created
|
||||
// internal texture will released.
|
||||
|
||||
@@ -4155,7 +4155,7 @@ public static partial class bgfx
|
||||
/// <param name="_layerIndex">Layer index for texture arrays (only implemented for D3D11).</param>
|
||||
///
|
||||
[DllImport(DllName, EntryPoint="bgfx_override_internal_texture_ptr", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern unsafe UIntPtr override_internal_texture_ptr(TextureHandle _handle, UIntPtr _ptr, uint _layerIndex);
|
||||
public static extern unsafe UIntPtr override_internal_texture_ptr(TextureHandle _handle, UIntPtr _ptr, ushort _layerIndex);
|
||||
|
||||
/// <summary>
|
||||
/// Override internal texture by creating new texture. Previously created
|
||||
|
||||
@@ -9,7 +9,7 @@ import bindbc.common.types: c_int64, c_uint64, va_list;
|
||||
import bindbc.bgfx.config;
|
||||
static import bgfx.impl;
|
||||
|
||||
enum uint apiVersion = 129;
|
||||
enum uint apiVersion = 130;
|
||||
|
||||
alias ViewID = ushort;
|
||||
|
||||
@@ -3093,7 +3093,7 @@ mixin(joinFnBinds((){
|
||||
ptr = Native API pointer to texture.
|
||||
layerIndex = Layer index for texture arrays (only implemented for D3D11).
|
||||
*/
|
||||
{q{size_t}, q{overrideInternal}, q{TextureHandle handle, size_t ptr, uint layerIndex}, ext: `C++, "bgfx"`},
|
||||
{q{size_t}, q{overrideInternal}, q{TextureHandle handle, size_t ptr, ushort layerIndex=0}, ext: `C++, "bgfx"`},
|
||||
|
||||
/**
|
||||
* Override internal texture by creating new texture. Previously created
|
||||
|
||||
@@ -3285,10 +3285,10 @@ extern fn bgfx_get_internal_data() [*c]const InternalData;
|
||||
/// <param name="_handle">Texture handle.</param>
|
||||
/// <param name="_ptr">Native API pointer to texture.</param>
|
||||
/// <param name="_layerIndex">Layer index for texture arrays (only implemented for D3D11).</param>
|
||||
pub inline fn overrideInternalTexturePtr(_handle: TextureHandle, _ptr: usize, _layerIndex: u32) usize {
|
||||
pub inline fn overrideInternalTexturePtr(_handle: TextureHandle, _ptr: usize, _layerIndex: u16) usize {
|
||||
return bgfx_override_internal_texture_ptr(_handle, _ptr, _layerIndex);
|
||||
}
|
||||
extern fn bgfx_override_internal_texture_ptr(_handle: TextureHandle, _ptr: usize, _layerIndex: u32) usize;
|
||||
extern fn bgfx_override_internal_texture_ptr(_handle: TextureHandle, _ptr: usize, _layerIndex: u16) usize;
|
||||
|
||||
/// Override internal texture by creating new texture. Previously created
|
||||
/// internal texture will released.
|
||||
|
||||
Reference in New Issue
Block a user