Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Jul 4, 2024
1 parent f62402a commit 8c8cbcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions korge-core/src@js/io/ygdrasil/wgpu/internal/js/WebGPUTypes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ external interface GPURenderCommandsMixin {
fun drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64)
}

external interface NavigatorGPU {
abstract external class NavigatorGPU : Navigator {
var gpu: GPU
}

Expand Down Expand Up @@ -1667,7 +1667,7 @@ external class GPUValidationError : GPUError {

typealias WGSLLanguageFeatures = ReadonlySet<String>

external interface WorkerNavigator : NavigatorGPU
typealias WorkerNavigator = NavigatorGPU


external class GPUBufferUsage {
Expand Down
4 changes: 4 additions & 0 deletions korge-core/src@js/korlibs/webgpu/WebGPUAG.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ private external val navigator: NavigatorGPU
class WebGPUAG(val device: GPUDevice) : AG() {
val dimensions = SizeInt(320, 240)

fun test() {
navigator.onLine
}

val shaderModule = device.createShaderModule(GPUShaderModuleDescriptor(
code = """
@vertex
Expand Down

0 comments on commit 8c8cbcc

Please sign in to comment.