github.com/cybriq/giocore@v0.0.7-0.20210703034601-cfb9cb5f3900/gpu/api.go (about)

     1  // SPDX-License-Identifier: Unlicense OR MIT
     2  
     3  package gpu
     4  
     5  import "github.com/cybriq/giocore/gpu/internal/driver"
     6  
     7  // An API carries the necessary GPU API specific resources to create a Device.
     8  // There is an API type for each supported GPU API such as OpenGL and Direct3D.
     9  type API = driver.API
    10  
    11  // OpenGL denotes the OpenGL or OpenGL ES API.
    12  type OpenGL = driver.OpenGL
    13  
    14  // Direct3D11 denotes the Direct3D API.
    15  type Direct3D11 = driver.Direct3D11