Dagor Documentation Logo
0.1.0

内容:

  • Dagor主页
  • Dagor 入门
  • 资产和资产管理
  • .blk 文件格式
  • Asset Viewer
  • daEditor
  • dag2riRes
  • Impostor Baker
  • levels.deps
  • 构建资源
  • Substance Designer Mip Generator
  • Blender 和 3ds Max 的插件
  • 着色器编译器
  • 项目
  • 示例
  • 教程和手册
  • API 参考和文档
    • Dagor引擎渲染器
      • D3D API
        • Barriers
        • Bindless resources API
        • Buffers
        • 驱动器命令
        • Compute shader dispatch API
        • Mesh shader dispatch API
        • Draw calls API
        • Heaps
        • 可调用的 d3d:: methods
        • Driver info API
        • GPU related locks
        • 用于矩阵和透视对象的 D3D API
        • Queries
        • RenderPass
        • Render State
        • Render Targets
        • Resource update buffers
        • Resources
        • Read/Write (UAV) resources
        • Samplers
        • Shader programs
        • Shader constants and const buffers
        • Tiled Resource
        • Variable rate shading API
        • Vertex and Index buffer API
        • View and Scissor d3d API
        • 常量、结构和枚举
        • 所有其它方法
        • Textures
      • D3D API的辅助类
      • daBFG API
      • 管理资源
      • 资源插槽
    • Dagor ECS
    • Dagor 着色器语言 (DSHL) 文档
  • DaNetGame 框架
Dagor Documentation
  • API 参考和文档
  • Dagor引擎渲染器
  • D3D API
  • GPU related locks
  • View page source

GPU related locks

namespace d3d
struct GpuAutoLock

The GpuAutoLock struct is a lock that automatically acquires and releases a GPU lock. It is used to protect critical sections of code that interact with the GPU.

Public Functions

GpuAutoLock()
~GpuAutoLock()
struct GPUWorkloadSplit

The GPUWorkloadSplit struct is used for scoped conditional GPU workload splitting. It allows splitting the GPU workload based on certain conditions.

Public Functions

inline GPUWorkloadSplit(bool do_split, bool split_at_end, const char *marker)

Constructs a GPUWorkloadSplit object.

Parameters
  • do_split – Flag indicating whether to split the GPU workload.

  • split_at_end – Flag indicating whether to split at the end.

  • marker – A marker used for splitting the workload.

inline ~GPUWorkloadSplit()

Destructs the GPUWorkloadSplit object. If a split is needed at the end, it performs the split.

Public Members

bool needSplitAtEnd

Flag indicating whether a split is needed at the end.

struct LoadingAutoLock

The LoadingAutoLock struct is a non-exclusive lock that protects a thread from GPU reset. It is used to ensure that the GPU is not reset while a thread is performing loading operations.

Public Functions

inline LoadingAutoLock()
inline ~LoadingAutoLock()
Previous Next

© Copyright Gaijin Entertainment 2025. Last updated on Jun 18, 2025.

Built with Sphinx using a theme provided by Read the Docs.