public void callNeighborFormatKernels()
        {
            ShownVoxels.SetCounterValue(0);
            neighborFormat.Dispatch(ExposedVoxelsKernel, vGenConfig.GroupsPerChunkX, vGenConfig.GroupsPerChunkY, vGenConfig.GroupsPerChunkZ);

            ShownVoxelsLOD2.SetCounterValue(0);
            var groupsLOD2 = vGenConfig.GroupsPerChunkAtLOD(1);

            neighborFormat.Dispatch(ExposedVoxelsKernelLOD2, groupsLOD2.x, groupsLOD2.y, groupsLOD2.z);

            ShownVoxelsLOD4.SetCounterValue(0);
            var groupsLOD4 = vGenConfig.GroupsPerChunkAtLOD(2);

            neighborFormat.Dispatch(ExposedVoxelsKernelLOD4, groupsLOD4.x, groupsLOD4.y, groupsLOD4.z);
        }
Beispiel #2
0
        public void callFaceGenKernels()
        {
            ShownVoxels.SetCounterValue(0);
            meshGen.Dispatch(ExposedVoxelsKernel, vGenConfig.GroupsPerChunkX, vGenConfig.GroupsPerChunkY, vGenConfig.GroupsPerChunkZ); //  8, 1, 8 );

            ShownVoxelsLOD2.SetCounterValue(0);
            var groupsLOD2 = vGenConfig.GroupsPerChunkAtLOD(1);

            meshGen.Dispatch(ExposedVoxelsKernelLOD2, groupsLOD2.x, groupsLOD2.y, groupsLOD2.z);

            ShownVoxelsLOD4.SetCounterValue(0);
            var groupsLOD4 = vGenConfig.GroupsPerChunkAtLOD(2);

            meshGen.Dispatch(ExposedVoxelsKernelLOD4, groupsLOD4.x, groupsLOD4.y, groupsLOD4.z);
        }
Beispiel #3
0
        public void callClearMapBuffersKernel()
        {
            var lodGroups = vGenConfig.GroupsPerChunkAtLOD(0);

            perlinGen.Dispatch(ClearMapBuffersKernel, lodGroups.x, lodGroups.y, lodGroups.z);
        }