Xenko

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

  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • Manual
  • API
  • Release notes
    Show / Hide Table of Contents

    Low-level API

    The @'SiliconStudio.Xenko.Graphics.GraphicsDevice' class is the central class for displaying the application. It is used to create resources and present images on the screen. It is accessible as a member of the @'SiliconStudio.Xenko.Engine.Game' and @'SiliconStudio.Xenko.Engine.ScriptComponent' classes.

    Actions like drawing, setting graphics states and using resources, are recorded using @'SiliconStudio.Xenko.Graphics.CommandList' objects, for later execution by the device. Many command lists can be filled at the same time, for example one per thread. A default command list is available as member of the @'SiliconStudio.Xenko.Games.GameBase.GraphicsContext' of your @'SiliconStudio.Xenko.Engine.Game'.

    In methods, these objects are typically provided through contexts such as @'SiliconStudio.Xenko.Rendering.RenderContext' and @'SiliconStudio.Xenko.Rendering.RenderDrawContext'.

    To successfully perform any drawing, multiple steps are required. These include:

    • Setting textures as render textures, clearing them, and setting viewports and scissors
    • Setting up the graphics pipeline state, including input description, shaders, depth-stencil, blending, rasterizer, etc.
    • Binding resources, such as constant buffers and textures
    • Drawing any sets of vertices using built-in primitives or custom vertex buffers
    • Improve this Doc

    Back to top

    Copyright © 2016 Silicon Studio
    Generated by DocFX