wgpu4k

    WebGPU binding for kotlin multi platform

    Language: kotlin

    Author: Vicky Fuller (@vickydev)

    10 stars · 284 views

    Files

    • wgpu4k (txt)
    • src (txt)
    • jvmTest (txt)
    • kotlin (txt)
    • WGPUTest.kt (kt)
    • internal (txt)
    • jvm (txt)
    • Panama.kt (kt)
    • Surface.ios.kt (kt)
    • desktopNativeMain (txt)
    • kotlin (txt)
    • SampleTextureMixcolorShader.kt (kt)
    • resources (txt)
    • assets (txt)
    • img (txt)
    • spiral_normal.png (image)
    • toybox_normal.png (image)
    • brickwall_height.png (image)
    • saturn.jpg (image)
    • Di-3d.png (image)
    • toybox_height.png (image)
    • webgpu.png (image)
    • webgpu4kotlin.png (image)
    • moon.jpg (image)
    • cubemap (txt)
    • posy.png (image)
    • readme.txt (txt)
    • negx.png (image)
    • brickwall_normal.png (image)
    • wood_albedo.png (image)
    • brickwall_albedo.png (image)
    • spiral_height.png (image)
    • gltf (txt)
    • jsMain (txt)
    • kotlin (txt)
    • headless (txt)
    • render.web.js.kt (kt)
    • gradle (txt)
    • wrapper (txt)
    • GPUError.kt (kt)
    • nativeMain (txt)
    • DeviceExt.native.kt (kt)
    • kotlin (txt)
    • Platform.kt (kt)
    • commonNativeMain (txt)
    • kotlin (txt)
    • QueueExt.native.kt (kt)
    • CommandBuffer.native.kt (kt)
    • RenderBundleEncoder.native.kt (kt)
    • WGPU.kt (kt)
    • Texture.native.kt (kt)
    • BindGroupLayout.native.kt (kt)
    • RenderBundle.native.kt (kt)
    • mapper (txt)
    • GPUCompilationInfo.kt (kt)
    • TextureDescriptor.kt (kt)
    • RenderBundleEncoderDescriptor.kt (kt)
    • InstanceDescriptor.kt (kt)
    • BindGroupLayoutDescriptor.kt (kt)
    • Origin3D.kt (kt)
    • TextureViewDescriptor.kt (kt)
    • QuerySetDescriptor.kt (kt)
    • TexelCopyTextureInfo.kt (kt)
    • ShaderModuleDescriptor.kt (kt)
    • BindGroupDescriptor.kt (kt)
    • Size3D.kt (kt)
    • RenderPassDescriptor.kt (kt)
    • AdapterInfo.kt (kt)
    • DeviceDescriptor.kt (kt)
    • GPUError.kt (kt)
    • NativeAdress.kt (kt)
    • Color.kt (kt)
    • RenderBundleDescriptor.kt (kt)
    • Limits.kt (kt)
    • TextureDataLayout.kt (kt)
    • RenderPipelineDescriptor.kt (kt)
    • String.kt (kt)
    • PipelineLayoutDescriptor.kt (kt)
    • SamplerDescriptor.kt (kt)
    • ComputePassDescriptor.kt (kt)
    • ComputePipelineDescriptor.kt (kt)
    • Boolean.kt (kt)
    • BufferDescriptor.kt (kt)
    • ListInt.kt (kt)
    • TexelCopyBufferInfo.kt (kt)
    • Pipeline.kt (kt)
    • ShaderModule.native.kt (kt)
    • QuerySet.native.kt (kt)
    • Adapter.native.kt (kt)
    • ComputePassEncoder.native.kt (kt)
    • RenderPassEncoder.native.kt (kt)
    • BindGroup.native.kt (kt)
    • Device.native.kt (kt)
    • headless (txt)
    • CommandEncoder.native.kt (kt)
    • Surface.native.kt (kt)
    • webgpu.enumerations.native.kt (kt)
    • Queue.native.kt (kt)
    • ComputePipeline.native.kt (kt)
    • Sampler.native.kt (kt)
    • TextureView.native.kt (kt)
    • Buffer.native.kt (kt)
    • Pipeline.native.kt (kt)
    • wasmJsMain (txt)
    • kotlin (txt)
    • mapper (txt)
    • GPUError.wasmJs.kt (kt)
    • Device.wasmJs.kt (kt)
    • jvmMain (txt)
    • kotlin (txt)
    • mapper (txt)
    • NativeAdress.jvm.kt (kt)
    • CommandEncoder.kt (kt)
    • Queue.native.jvm.kt (kt)
    • nativeMain (txt)
    • kotlin (txt)
    • Queue.native.native.kt (kt)
    • mapper (txt)
    • NativeAdress.native.kt (kt)
    • webMain (txt)
    • kotlin (txt)
    • QueueExt.web.kt (kt)
    • Buffer.kt (kt)
    • TextureView.kt (kt)
    • ComputePassEncoder.kt (kt)
    • ShaderModule.kt (kt)
    • RenderBundle.kt (kt)
    • ComputePipeline.kt (kt)
    • mapper (txt)
    • GPUCompilationInfo.kt (kt)
    • TextureDescriptor.kt (kt)
    • RenderBundleEncoderDescriptor.kt (kt)
    • PipelineLayout.kt (kt)
    • BindGroupLayoutDescriptor.kt (kt)
    • Origin3D.kt (kt)
    • TexelCopyBufferLayout.kt (kt)
    • TextureViewDescriptor.kt (kt)
    • Extent3D.kt (kt)
    • QuerySetDescriptor.kt (kt)
    • TexelCopyTextureInfo.kt (kt)
    • ShaderModuleDescriptor.kt (kt)
    • CommandEncoderDescriptor.kt (kt)
    • BindGroup.kt (kt)
    • BindGroupDescriptor.kt (kt)
    • RenderPassDescriptor.kt (kt)
    • AdapterInfo.kt (kt)
    • DeviceDescriptor.kt (kt)
    • GPUError.kt (kt)
    • CommandBufferDescriptor.kt (kt)
    • Color.kt (kt)
    • RenderBundleDescriptor.kt (kt)
    • Queue.kt (kt)
    • SurfaceConfiguration.kt (kt)
    • RenderPipelineDescriptor.kt (kt)
    • PipelineLayoutDescriptor.kt (kt)
    • SamplerDescriptor.kt (kt)
    • SupportedLimits.kt (kt)
    • List.kt (kt)
    • ComputePassDescriptor.kt (kt)
    • VertexFormat.kt (kt)
    • ComputePipelineDescriptor.kt (kt)
    • BufferDescriptor.kt (kt)
    • TexelCopyBufferInfo.kt (kt)
    • CommandBuffer.kt (kt)
    • Surface.kt (kt)
    • Texture.kt (kt)
    • BindGroupLayout.kt (kt)
    • QuerySet.kt (kt)
    • Queue.kt (kt)
    • RenderPassEncoder.kt (kt)
    • RenderBundleEncoder.kt (kt)
    • Device.kt (kt)
    • Sampler.kt (kt)
    • RenderPipeline.kt (kt)
    • CanvasSurface.kt (kt)
    • DeviceExt.web.kt (kt)
    • webgpu.enumerations.web.kt (kt)
    • Adapter.kt (kt)
    • commonTest (txt)
    • kotlin (txt)
    • Enumerations.kt (kt)
    • androidMain (txt)
    • kotlin (txt)
    • mapper (txt)
    • NativeAdress.android.kt (kt)
    • Queue.native.android.kt (kt)
    • commonMain (txt)
    • kotlin (txt)
    • Buffer.kt (kt)
    • CommandEncoder.kt (kt)
    • WGPULowLevelApi.kt (kt)
    • ComputePassEncoder.kt (kt)
    • ShaderModule.kt (kt)
    • RenderBundle.kt (kt)
    • Enumerations.kt (kt)
    • webgpu.enumerations.kt (kt)
    • ComputePipeline.kt (kt)
    • CommandBuffer.kt (kt)
    • Surface.kt (kt)
    • Texture.kt (kt)
    • BindGroupLayout.kt (kt)
    • QuerySet.kt (kt)
    • AdapterInfo.kt (kt)
    • RenderPassEncoder.kt (kt)
    • DeviceExt.kt (kt)
    • RenderBundleEncoder.kt (kt)
    • Limits.kt (kt)
    • Device.kt (kt)
    • Sampler.kt (kt)
    • deprecated.enumerations.kt (kt)
    • QueueExt.kt (kt)
    • TextureView.kt (kt)
    • BindGroup.kt (kt)
    • Adapter.kt (kt)
    • jsMain (txt)
    • kotlin (txt)
    • mapper (txt)
    • GPUError.js.kt (kt)
    • Device.js.kt (kt)
    • wgpu4k-toolkit (txt)
    • src (txt)
    • mingwMain (txt)
    • kotlin (txt)
    • glfw.kt (kt)
    • iosMain (txt)
    • kotlin (txt)
    • context.ios.kt (kt)
    • Paths.kt (kt)
    • Surface.desktopNative.kt (kt)
    • glfw.kt (kt)
    • jvmMain (txt)
    • kotlin (txt)
    • internal (txt)
    • Platform.kt (kt)
    • glfw.kt (kt)
    • Surface.jvm.kt (kt)
    • webMain (txt)
    • kotlin (txt)
    • drawable-v24 (txt)
    • drawable (txt)
    • Surface.kt (kt)
    • androidNativeMain (txt)
    • kotlin (txt)
    • context.androidNative.kt (kt)
    • Surface.androidNative.kt (kt)
    • macosMain (txt)
    • kotlin (txt)
    • glfw.macos.kt (kt)
    • androidMain (txt)
    • kotlin (txt)
    • Surface.android.kt (kt)
    • mipmap-xhdpi (txt)
    • ic_launcher_round.webp (image)
    • ic_launcher.webp (image)
    • context.android.kt (kt)
    • commonMain (txt)
    • kotlin (txt)
    • AutoClosableContext.kt (kt)
    • Surface.kt (kt)
    • RenderingContext.kt (kt)
    • SurfaceRenderingContext.kt (kt)
    • TextureRenderingContext.kt (kt)
    • WGPUContext.kt (kt)
    • linuxMain (txt)
    • kotlin (txt)
    • glfw.linux.kt (kt)
    • wgpu4k-scenes (txt)
    • src (txt)
    • commonNativeMain (txt)
    • kotlin (txt)
    • mipmap-xxxhdpi (txt)
    • ic_launcher_round.webp (image)
    • ic_launcher.webp (image)
    • AssetManager.commonNative.kt (kt)
    • wasmJsMain (txt)
    • kotlin (txt)
    • headless (txt)
    • render.web.wasmJs.kt (kt)
    • jvmMain (txt)
    • kotlin (txt)
    • headless (txt)
    • render.jvm.kt (kt)
    • HeadlessContext.jvm.kt (kt)
    • AssetManager.commonNative.jvm.kt (kt)
    • nativeMain (txt)
    • kotlin (txt)
    • AssetManager.commonNative.native.kt (kt)
    • headless (txt)
    • HeadlessContext.native.kt (kt)
    • render.native.kt (kt)
    • webMain (txt)
    • kotlin (txt)
    • AssetManager.web.kt (kt)
    • render.web.kt (kt)
    • HeadlessContext.web.kt (kt)
    • androidMain (txt)
    • kotlin (txt)
    • AssetManager.commonNative.android.kt (kt)
    • headless (txt)
    • HeadlessContext.android.kt (kt)
    • render.android.kt (kt)
    • commonMain (txt)
    • kotlin (txt)
    • AssetManager.kt (kt)
    • Scene.kt (kt)
    • Application.kt (kt)
    • helper (txt)
    • glb (txt)
    • GLTF2.kt (kt)
    • VarKind.kt (kt)
    • enum.kt (kt)
    • ShaderCache.kt (kt)
    • import.kt (kt)
    • domain.kt (kt)
    • helper.kt (kt)
    • headless (txt)
    • HeadlessContext.kt (kt)
    • render.kt (kt)
    • scenes (txt)
    • basic (txt)
    • RotatingCube.kt (kt)
    • FractalCube.kt (kt)
    • HelloTriangle.kt (kt)
    • InstancedCube.kt (kt)
    • Cubemap.kt (kt)
    • HelloTriangleMSAA.kt (kt)
    • TwoCubes.kt (kt)
    • TexturedCube.kt (kt)
    • HelloTriangleRotating.kt (kt)
    • mesh (txt)
    • Cube.kt (kt)
    • graphics.techniques (techniques)
    • SkinnedMesh.kt (kt)
    • Particles.kt (kt)
    • shader (txt)
    • vertex (txt)
    • mipmap-xxhdpi (txt)
    • ic_launcher_round.webp (image)
    • InstancedShader.kt (kt)
    • BasicVertexShader.kt (kt)
    • BasicVertexPositionShader.kt (kt)
    • TriangleVertexShader.kt (kt)
    • ParticlesShader.kt (kt)
    • ParticlesShaderFixed.kt (kt)
    • compute (txt)
    • ProbabilityMap.kt (kt)
    • fragment (txt)
    • SampleSelfShader.kt (kt)
    • RefFragmentShader.kt (kt)
    • SampleCubemap.kt (kt)
    • VertexPositionColorShader.kt (kt)
    • libs.versions.toml (toml)
    • KNOWN-ISSUES.md (md)
    • README.md (md)
    • generator (txt)
    • src (txt)
    • main (txt)
    • kotlin (txt)
    • Domain.kt (kt)
    • builder (txt)
    • TemplateBuilder.kt (kt)
    • generator (txt)
    • EnumGenerator.kt (kt)
    • BitflagGenerator.kt (kt)
    • bitflag (txt)
    • ic_launcher.webp (image)
    • mipmap-hdpi (txt)
    • ic_launcher_round.webp (image)
    • ic_launcher.webp (image)
    • mipmap-anydpi-v26 (txt)
    • native (txt)
    • common.template.kt (kt)
    • enumeration (txt)
    • web.template.kt (kt)
    • common.template.kt (kt)
    • native.template.kt (kt)
    • domain (txt)
    • YamlModel.kt (kt)
    • src (txt)
    • YamlParser.kt (kt)
    • LICENSE (txt)
    • examples (txt)
    • android (txt)
    • src (txt)
    • main (txt)
    • java (txt)
    • WGPUSurfaceView.kt (kt)
    • MainActivity.kt (kt)
    • res (txt)
    • values (txt)
    • mipmap-mdpi (txt)
    • ic_launcher_round.webp (image)
    • ic_launcher.webp (image)
    • main.kt (kt)
    • iOS (txt)
    • src (txt)
    • iosMain (txt)
    • kotlin (txt)
    • main.kt (kt)
    • iosApp (txt)
    • ATTRIBUTION.md (markdown)

    Loading code snippet…