Bgfx Methods |
The Bgfx type exposes the following members.
Name | Description | |
---|---|---|
AllocateTransientBuffers |
Attempts to allocate both a transient vertex buffer and index buffer.
| |
Begin |
Begins submission of commands via an encoder on this thread.
| |
CallSpecial(String) | ||
CallSpecial(String, IntPtr) | ||
CallSpecial(String, IntPtr, IntPtr) | ||
CallSpecial(String, IntPtr, IntPtr, IntPtr) | ||
CallSpecial(String, IntPtr, IntPtr, IntPtr, IntPtr) | ||
DebugTextClear |
Clears the debug text buffer.
| |
DebugTextImage(Int32, Int32, Int32, Int32, Byte, Int32) |
Draws data directly into the debug text buffer.
| |
DebugTextImage(Int32, Int32, Int32, Int32, IntPtr, Int32) |
Draws data directly into the debug text buffer.
| |
DebugTextWrite(Int32, Int32, DebugColor, DebugColor, IntPtr) |
Writes debug text to the screen.
| |
DebugTextWrite(Int32, Int32, DebugColor, DebugColor, String) |
Writes debug text to the screen.
| |
DebugTextWrite(Int32, Int32, DebugColor, DebugColor, String, Object) |
Writes debug text to the screen.
| |
Discard |
Discards all previously set state for the draw call.
| |
Dispatch(UInt16, Program, IndirectBuffer, Int32, Int32, DiscardFlags) |
Dispatches an indirect compute job.
| |
Dispatch(UInt16, Program, Int32, Int32, Int32, DiscardFlags) |
Dispatches a compute job.
| |
Frame |
Advances to the next frame.
| |
GetBackendName |
Gets the friendly name of a specific rendering backend.
| |
GetCaps |
Gets the capabilities of the rendering device.
| |
GetCurrentBackend |
Gets the currently active rendering backend API.
| |
GetGPUDescription | ||
GetInternalData |
Gets access to underlying API internals for interop scenarios.
| |
GetStats |
Gets frame performance statistics.
| |
GetSupportedBackends |
Gets the set of supported rendering backends.
| |
ImageRgba8Downsample2x2 |
Downsamples an RGBA8 image with a 2x2 pixel average filter.
| |
ImageSwizzleBgra8 |
Swizzles an RGBA8 image to BGRA8.
| |
Init |
Initializes the graphics library on the specified adapter.
| |
ManuallyRenderFrame |
Manually renders a frame. Use this to control the Bgfx render loop.
| |
RequestScreenShot(String) |
Requests that a screenshot be saved. The ScreenshotTaken event will be fired to save the result.
| |
RequestScreenShot(FrameBuffer, String) |
Requests that a screenshot be saved. The ScreenshotTaken event will be fired to save the result.
| |
Reset |
Resets graphics settings and surfaces.
| |
ResetView |
Resets all view settings to default.
| |
SetComputeBuffer(Byte, DynamicIndexBuffer, ComputeBufferAccess) |
Sets a dynamic index buffer as a compute resource.
| |
SetComputeBuffer(Byte, DynamicVertexBuffer, ComputeBufferAccess) |
Sets a dynamic vertex buffer as a compute resource.
| |
SetComputeBuffer(Byte, IndexBuffer, ComputeBufferAccess) |
Sets an index buffer as a compute resource.
| |
SetComputeBuffer(Byte, IndirectBuffer, ComputeBufferAccess) |
Sets an indirect buffer as a compute resource.
| |
SetComputeBuffer(Byte, VertexBuffer, ComputeBufferAccess) |
Sets a verterx buffer as a compute resource.
| |
SetComputeImage |
Sets a texture mip as a compute image.
| |
SetDebugFeatures |
Enables debugging features.
| |
SetDebugMarker |
Sets a marker that can be used for debugging purposes.
| |
SetIndexBuffer(DynamicIndexBuffer) |
Sets the index buffer to use for drawing primitives.
| |
SetIndexBuffer(IndexBuffer) |
Sets the index buffer to use for drawing primitives.
| |
SetIndexBuffer(TransientIndexBuffer) |
Sets the index buffer to use for drawing primitives.
| |
SetIndexBuffer(DynamicIndexBuffer, Int32, Int32) |
Sets the index buffer to use for drawing primitives.
| |
SetIndexBuffer(IndexBuffer, Int32, Int32) |
Sets the index buffer to use for drawing primitives.
| |
SetIndexBuffer(TransientIndexBuffer, Int32, Int32) |
Sets the index buffer to use for drawing primitives.
| |
SetInstanceCount |
Sets the number of auto-generated indices for use with gl_InstanceID.
| |
SetInstanceDataBuffer(DynamicVertexBuffer, Int32, Int32) |
Sets instance data to use for drawing primitives.
| |
SetInstanceDataBuffer(InstanceDataBuffer, Int32, Int32) |
Sets instance data to use for drawing primitives.
| |
SetInstanceDataBuffer(VertexBuffer, Int32, Int32) |
Sets instance data to use for drawing primitives.
| |
SetPaletteColor |
Sets an entry in the color palette.
| |
SetPlatformData |
Sets platform-specific data pointers to hook into low-level library functionality.
| |
SetRenderState(RenderState) |
Set rendering states used to draw primitives.
| |
SetRenderState(RenderState, Int32) |
Set rendering states used to draw primitives.
| |
SetScissor(Int32) |
Sets a scissor rectangle from the cache.
| |
SetScissor(Int32, Int32, Int32, Int32) |
Sets the scissor rectangle to use for clipping primitives.
| |
SetStencil(StencilFlags) |
Sets stencil test state.
| |
SetStencil(StencilFlags, StencilFlags) |
Sets stencil test state.
| |
SetTexture(Byte, Uniform, Texture) |
Sets a texture to use for drawing primitives.
| |
SetTexture(Byte, Uniform, Texture, TextureFlags) |
Sets a texture to use for drawing primitives.
| |
SetTextures | ||
SetTransform(Int32, Int32) |
Sets a model transform from the cache.
| |
SetTransform(Single*, Int32) |
Sets the model transform to use for drawing primitives.
| |
SetTripleBuffering | ||
SetUniform(Uniform, IntPtr, Int32) |
Sets the value of a uniform parameter.
| |
SetUniform(Uniform, Single, Int32) |
Sets the value of a uniform parameter.
| |
SetUniform(Uniform, Void*, Int32) |
Sets the value of a uniform parameter.
| |
SetVertexBuffer(Int32, DynamicVertexBuffer) |
Sets the vertex buffer to use for drawing primitives.
| |
SetVertexBuffer(Int32, TransientVertexBuffer) |
Sets the vertex buffer to use for drawing primitives.
| |
SetVertexBuffer(Int32, VertexBuffer) |
Sets the vertex buffer to use for drawing primitives.
| |
SetVertexBuffer(Int32, DynamicVertexBuffer, Int32, Int32) |
Sets the vertex buffer to use for drawing primitives.
| |
SetVertexBuffer(Int32, TransientVertexBuffer, Int32, Int32) |
Sets the vertex buffer to use for drawing primitives.
| |
SetVertexBuffer(Int32, VertexBuffer, Int32, Int32) |
Sets the vertex buffer to use for drawing primitives.
| |
SetVertexCount |
Sets the number of auto-generated vertices for use with gl_VertexID.
| |
SetViewClear(UInt16, ClearTargets, UInt32, Single, Byte) |
Sets view clear flags.
| |
SetViewClear(UInt16, ClearTargets, Single, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte) |
Sets view clear flags for multiple render targets.
| |
SetViewFrameBuffer |
Sets the frame buffer used by a particular view.
| |
SetViewMode |
Sets the sorting mode to use for the given view.
| |
SetViewName |
Sets the name of a rendering view, for debugging purposes.
| |
SetViewRect(UInt16, Int32, Int32, BackbufferRatio) |
Sets the viewport for the given rendering view.
| |
SetViewRect(UInt16, Int32, Int32, Int32, Int32) |
Sets the viewport for the given rendering view.
| |
SetViewScissor |
Sets the scissor rectangle for a specific view.
| |
SetViewTransform |
Sets the view and projection transforms for the given rendering view.
| |
SetWindowHandle |
Sets the handle of the main rendering window.
| |
Shutdown |
Closes the library and releases all resources.
| |
Submit(UInt16, Program, Int32, DiscardFlags) |
Submits the current batch of primitives for rendering.
| |
Submit(UInt16, Program, OcclusionQuery, Int32, DiscardFlags) |
Submits the current batch of primitives for rendering.
| |
Submit(UInt16, Program, IndirectBuffer, Int32, Int32, Int32, DiscardFlags) |
Submits an indirect batch of drawing commands to be used for rendering.
| |
TopologyConvert | ||
Touch |
Marks a view as "touched", ensuring that its background is cleared even if nothing is rendered.
| |
VertexConvert |
Converts a stream of vertex data from one format to another.
| |
VertexPack |
Packs a vector into vertex stream format.
| |
VertexUnpack |
Unpack a vector from a vertex stream.
|