Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    GraphicsContext Class

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    A graphics command context. You should usually stick to one per rendering thread.

    System.Object → GraphicsContext
    Derived from GraphicsContext:

    public class GraphicsContext
    Name Description
    Constructors
    GraphicsContext(GraphicsDevice, GraphicsResourceAllocator, CommandList)
    Properties
    Allocator
    CommandList

    Gets the current command list.

    ResourceGroupAllocator

    Gets the current resource group allocator.

    | Improve this Doc View Source

    Constructors


    GraphicsContext(GraphicsDevice, GraphicsResourceAllocator, CommandList)

    public GraphicsContext(GraphicsDevice graphicsDevice, GraphicsResourceAllocator allocator = null, CommandList commandList = null)
    Parameters
    Type Name Description
    GraphicsDevice graphicsDevice
    GraphicsResourceAllocator allocator
    CommandList commandList
    | Improve this Doc View Source

    Properties


    Allocator

    public GraphicsResourceAllocator Allocator { get; }
    Property Value
    Type Description
    GraphicsResourceAllocator

    CommandList

    Gets the current command list.

    public CommandList CommandList { get; set; }
    Property Value
    Type Description
    CommandList

    ResourceGroupAllocator

    Gets the current resource group allocator.

    public ResourceGroupAllocator ResourceGroupAllocator { get; }
    Property Value
    Type Description
    ResourceGroupAllocator

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    GraphicsDeviceExtensions.DrawQuad(GraphicsContext, EffectInstance)
    GraphicsDeviceExtensions.DrawTexture(GraphicsContext, Texture, Nullable<BlendStateDescription>)
    GraphicsDeviceExtensions.DrawTexture(GraphicsContext, Texture, SamplerState, Nullable<BlendStateDescription>)
    GraphicsDeviceExtensions.DrawTexture(GraphicsContext, Texture, Color4, Nullable<BlendStateDescription>)
    GraphicsDeviceExtensions.DrawTexture(GraphicsContext, Texture, SamplerState, Color4, Nullable<BlendStateDescription>)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation