public static extern void bgfx_calc_texture_size(ref Texture.TextureInfo info, ushort width, ushort height, ushort depth, [MarshalAs(UnmanagedType.U1)] bool cubeMap, [MarshalAs(UnmanagedType.U1)] bool hasMips, ushort numLayers, TextureFormat format);
/// <summary> /// Gets the texture associated with a particular framebuffer attachment. /// </summary> /// <param name="attachment">The attachment index.</param> /// <returns>The texture associated with the attachment.</returns> public Texture GetTexture(int attachment = 0) { var info = new Texture.TextureInfo(); return(new Texture(NativeMethods.bgfx_get_texture(handle, (byte)attachment), ref info)); }
public static extern ushort bgfx_create_texture(MemoryBlock.DataPtr *mem, TextureFlags flags, byte skip, out Texture.TextureInfo info);
public static extern void bgfx_calc_texture_size(ref Texture.TextureInfo info, ushort width, ushort height, ushort depth, [MarshalAs(UnmanagedType.U1)] bool cubeMap, byte mipCount, TextureFormat format);