SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
WebGPUDemoApp Struct Reference

Application struct WebGPUDemoApp with all global variables. More...

Public Attributes

GLFWwindow * window = nullptr
 
int surfaceWidth = 0
 
int surfaceHeight = 0
 
WGPUInstance instance = nullptr
 
WGPUAdapter adapter = nullptr
 
WGPUDevice device = nullptr
 
WGPUQueue queue = nullptr
 
WGPUSurface surface = nullptr
 
WGPUBuffer vertexBuffer = nullptr
 
WGPUBuffer indexBuffer = nullptr
 
WGPUBuffer uniformBuffer = nullptr
 
WGPUTexture depthTexture = nullptr
 
WGPUTextureView depthTextureView = nullptr
 
WGPUTexture texture = nullptr
 
WGPUTextureView textureView = nullptr
 
WGPUSampler sampler = nullptr
 
WGPUShaderModule shaderModule = nullptr
 
WGPUBindGroupLayout bindGroupLayout = nullptr
 
WGPUBindGroup bindGroup = nullptr
 
WGPUPipelineLayout pipelineLayout = nullptr
 
WGPURenderPipeline pipeline = nullptr
 
WGPUSurfaceConfiguration surfaceConfig
 
WGPUTextureFormat depthTextureFormat
 
WGPUTextureDescriptor depthTextureDesc
 
WGPUTextureViewDescriptor depthTextureViewDesc
 
unsigned vertexDataSize
 
unsigned indexCount
 
unsigned indexDataSize
 
float camRotX = 0.0f
 
float camRotY = 0.0f
 
float camZ = 2.0f
 

Detailed Description

Application struct WebGPUDemoApp with all global variables.

Definition at line 63 of file AppDemoWebGPU.cpp.

Member Data Documentation

◆ adapter

WGPUAdapter WebGPUDemoApp::adapter = nullptr

Definition at line 70 of file AppDemoWebGPU.cpp.

◆ bindGroup

WGPUBindGroup WebGPUDemoApp::bindGroup = nullptr

Definition at line 84 of file AppDemoWebGPU.cpp.

◆ bindGroupLayout

WGPUBindGroupLayout WebGPUDemoApp::bindGroupLayout = nullptr

Definition at line 83 of file AppDemoWebGPU.cpp.

◆ camRotX

float WebGPUDemoApp::camRotX = 0.0f

Definition at line 97 of file AppDemoWebGPU.cpp.

◆ camRotY

float WebGPUDemoApp::camRotY = 0.0f

Definition at line 98 of file AppDemoWebGPU.cpp.

◆ camZ

float WebGPUDemoApp::camZ = 2.0f

Definition at line 99 of file AppDemoWebGPU.cpp.

◆ depthTexture

WGPUTexture WebGPUDemoApp::depthTexture = nullptr

Definition at line 77 of file AppDemoWebGPU.cpp.

◆ depthTextureDesc

WGPUTextureDescriptor WebGPUDemoApp::depthTextureDesc

Definition at line 90 of file AppDemoWebGPU.cpp.

◆ depthTextureFormat

WGPUTextureFormat WebGPUDemoApp::depthTextureFormat

Definition at line 89 of file AppDemoWebGPU.cpp.

◆ depthTextureView

WGPUTextureView WebGPUDemoApp::depthTextureView = nullptr

Definition at line 78 of file AppDemoWebGPU.cpp.

◆ depthTextureViewDesc

WGPUTextureViewDescriptor WebGPUDemoApp::depthTextureViewDesc

Definition at line 91 of file AppDemoWebGPU.cpp.

◆ device

WGPUDevice WebGPUDemoApp::device = nullptr

Definition at line 71 of file AppDemoWebGPU.cpp.

◆ indexBuffer

WGPUBuffer WebGPUDemoApp::indexBuffer = nullptr

Definition at line 75 of file AppDemoWebGPU.cpp.

◆ indexCount

unsigned WebGPUDemoApp::indexCount

Definition at line 94 of file AppDemoWebGPU.cpp.

◆ indexDataSize

unsigned WebGPUDemoApp::indexDataSize

Definition at line 95 of file AppDemoWebGPU.cpp.

◆ instance

WGPUInstance WebGPUDemoApp::instance = nullptr

Definition at line 69 of file AppDemoWebGPU.cpp.

◆ pipeline

WGPURenderPipeline WebGPUDemoApp::pipeline = nullptr

Definition at line 86 of file AppDemoWebGPU.cpp.

◆ pipelineLayout

WGPUPipelineLayout WebGPUDemoApp::pipelineLayout = nullptr

Definition at line 85 of file AppDemoWebGPU.cpp.

◆ queue

WGPUQueue WebGPUDemoApp::queue = nullptr

Definition at line 72 of file AppDemoWebGPU.cpp.

◆ sampler

WGPUSampler WebGPUDemoApp::sampler = nullptr

Definition at line 81 of file AppDemoWebGPU.cpp.

◆ shaderModule

WGPUShaderModule WebGPUDemoApp::shaderModule = nullptr

Definition at line 82 of file AppDemoWebGPU.cpp.

◆ surface

WGPUSurface WebGPUDemoApp::surface = nullptr

Definition at line 73 of file AppDemoWebGPU.cpp.

◆ surfaceConfig

WGPUSurfaceConfiguration WebGPUDemoApp::surfaceConfig

Definition at line 88 of file AppDemoWebGPU.cpp.

◆ surfaceHeight

int WebGPUDemoApp::surfaceHeight = 0

Definition at line 67 of file AppDemoWebGPU.cpp.

◆ surfaceWidth

int WebGPUDemoApp::surfaceWidth = 0

Definition at line 66 of file AppDemoWebGPU.cpp.

◆ texture

WGPUTexture WebGPUDemoApp::texture = nullptr

Definition at line 79 of file AppDemoWebGPU.cpp.

◆ textureView

WGPUTextureView WebGPUDemoApp::textureView = nullptr

Definition at line 80 of file AppDemoWebGPU.cpp.

◆ uniformBuffer

WGPUBuffer WebGPUDemoApp::uniformBuffer = nullptr

Definition at line 76 of file AppDemoWebGPU.cpp.

◆ vertexBuffer

WGPUBuffer WebGPUDemoApp::vertexBuffer = nullptr

Definition at line 74 of file AppDemoWebGPU.cpp.

◆ vertexDataSize

unsigned WebGPUDemoApp::vertexDataSize

Definition at line 93 of file AppDemoWebGPU.cpp.

◆ window

GLFWwindow* WebGPUDemoApp::window = nullptr

Definition at line 65 of file AppDemoWebGPU.cpp.


The documentation for this struct was generated from the following file: