You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed that voxelization did not always produce binary identical results in multi-GPU compared to single-GPU, fixed z-fighting, fixed flickering in multi-GPU interactive rendering
)+R(voidextract_phi_massex_flags(const uint a, const uint A, const uint n, global char* transfer_buffer, const global float* phi, const global float* massex, const global uchar* flags) {
)+R(kernel voidgraphics_q(const global float* camera, global int* bitmap, global int* zbuffer, constint field_mode, const global float* rho, const global float* u, const global uchar* flags) {
2674
-
)+"#else"+R( // TEMPERATURE
2675
-
)+R(kernel voidgraphics_q(const global float* camera, global int* bitmap, global int* zbuffer, constint field_mode, const global float* rho, const global float* u, const global uchar* flags, const global float* T) {
2671
+
)+R(kernel void graphics_q)+"("+R(const global float* camera, global int* bitmap, global int* zbuffer, constint field_mode, const global float* rho, const global float* u // ) {
2672
+
)+"#ifdef SURFACE"+R(
2673
+
, const global uchar* flags // argument order is important
2674
+
)+"#endif"+R( // SURFACE
2675
+
)+"#ifdef TEMPERATURE"+R(
2676
+
, const global float* T // argument order is important
2676
2677
)+"#endif"+R( // TEMPERATURE
2678
+
)+") {"+R( // graphics_q()
2677
2679
const uint n = get_global_id(0);
2678
2680
const uint3 xyz = coordinates(n);
2679
2681
if(xyz.x>=def_Nx-1u||xyz.y>=def_Ny-1u||xyz.z>=def_Nz-1u||is_halo_q(xyz)) return; // don't execute graphics_q_field() on marching-cubes halo
@@ -2683,9 +2685,11 @@ string opencl_c_container() { return R( // ########################## begin of O
2683
2685
if(!is_in_camera_frustrum(p, camera_cache)) return; // skip loading LBM data if grid cell is not visible
if(!visualization_change&&!camera_update&&!camera.key_update&&lbm->get_t()==t_last_rendered_frame) returnfalse; // don't render a new frame if the scene hasn't changed since last frame
476
+
if(!visualization_change&&!camera_update&&lbm->get_t()==t_last_rendered_frame) returnfalse; // don't render a new frame if the scene hasn't changed since last frame
if(camera_update) camera_parameters.enqueue_write_to_device(); // camera_parameters PCIe transfer and kernel_clear execution can happen simulataneously
0 commit comments