Exemple #1
0
        public static void CreatePipelineAndBuffers()
        {
            IntPtr bindGroupLayout = createBindGroupLayout();

            //IntPtr bindGroupLayout = TriangleCPP.createBindGroupLayout();

            pipeline = CreatePipeline(bindGroupLayout);
            //pipeline = TriangleCPP.createPipeline(bindGroupLayout);

            vertBuf = CreateVertBuffer();
            //vertBuf = TriangleCPP.createVertBuffer();
            indxBuf = CreateIndxBuffer();
            //indxBuf = TriangleCPP.createIndxBuffer();
            uRotBuf = CreateDataBuffer();
            //uRotBuf = TriangleCPP.createDataBuffer();

            bindGroup = CreateBindGroup(bindGroupLayout, uRotBuf);
            //bindGroup = TriangleCPP.createBindGroup(bindGroupLayout, uRotBuf);

            // last bit of clean-up
            WebGPUNative.wgpuBindGroupLayoutRelease(bindGroupLayout);
        }