Cleanup: format, spelling, struct member comment
This commit is contained in:
@@ -1072,7 +1072,7 @@ void RenderScheduler::update_start_resolution_divider()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Calculate the maximum resolution divider possible while keeping the long axis of the viewport
|
/* Calculate the maximum resolution divider possible while keeping the long axis of the viewport
|
||||||
* above our prefered minimum axis size (128) */
|
* above our preferred minimum axis size (128). */
|
||||||
const int long_viewport_axis = max(buffer_params_.width, buffer_params_.height);
|
const int long_viewport_axis = max(buffer_params_.width, buffer_params_.height);
|
||||||
const int max_res_divider_for_desired_size = long_viewport_axis / 128;
|
const int max_res_divider_for_desired_size = long_viewport_axis / 128;
|
||||||
|
|
||||||
|
|||||||
@@ -741,21 +741,21 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
|
|||||||
endif()
|
endif()
|
||||||
# SYCL_CPP_FLAGS is a variable that the user can set to pass extra compiler options
|
# SYCL_CPP_FLAGS is a variable that the user can set to pass extra compiler options
|
||||||
set(sycl_compiler_flags
|
set(sycl_compiler_flags
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${SRC_KERNEL_DEVICE_ONEAPI}
|
${CMAKE_CURRENT_SOURCE_DIR}/${SRC_KERNEL_DEVICE_ONEAPI}
|
||||||
-fsycl
|
-fsycl
|
||||||
-fsycl-unnamed-lambda
|
-fsycl-unnamed-lambda
|
||||||
-fdelayed-template-parsing
|
-fdelayed-template-parsing
|
||||||
-mllvm -inlinedefault-threshold=250
|
-mllvm -inlinedefault-threshold=250
|
||||||
-mllvm -inlinehint-threshold=350
|
-mllvm -inlinehint-threshold=350
|
||||||
-fsycl-device-code-split=per_kernel
|
-fsycl-device-code-split=per_kernel
|
||||||
-fsycl-max-parallel-link-jobs=${SYCL_OFFLINE_COMPILER_PARALLEL_JOBS}
|
-fsycl-max-parallel-link-jobs=${SYCL_OFFLINE_COMPILER_PARALLEL_JOBS}
|
||||||
-shared
|
-shared
|
||||||
-DWITH_ONEAPI
|
-DWITH_ONEAPI
|
||||||
-ffast-math
|
-ffast-math
|
||||||
-O2
|
-O2
|
||||||
-o"${cycles_kernel_oneapi_lib}"
|
-o"${cycles_kernel_oneapi_lib}"
|
||||||
-I"${CMAKE_CURRENT_SOURCE_DIR}/.."
|
-I"${CMAKE_CURRENT_SOURCE_DIR}/.."
|
||||||
${SYCL_CPP_FLAGS}
|
${SYCL_CPP_FLAGS}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(WITH_CYCLES_ONEAPI_HOST_TASK_EXECUTION)
|
if(WITH_CYCLES_ONEAPI_HOST_TASK_EXECUTION)
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
* It's mostly used for modifiers, and has the advantages of not taking much
|
* It's mostly used for modifiers, and has the advantages of not taking much
|
||||||
* resources.
|
* resources.
|
||||||
*
|
*
|
||||||
* BMesh is a full-on brep, used for editmode, some modifiers, etc. It's much
|
* BMesh is a full-on BREP, used for edit-mode, some modifiers, etc. It's much
|
||||||
* more capable (if memory-intensive) then CDDM.
|
* more capable (if memory-intensive) then CDDM.
|
||||||
*
|
*
|
||||||
* DerivedMesh is somewhat hackish. Many places assumes that a DerivedMesh is
|
* DerivedMesh is somewhat hackish. Many places assumes that a DerivedMesh is
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ static void eevee_draw_scene(void *vedata)
|
|||||||
SET_FLAG_FROM_TEST(clear_bits, (stl->effects->enabled_effects & EFFECT_SSS), GPU_STENCIL_BIT);
|
SET_FLAG_FROM_TEST(clear_bits, (stl->effects->enabled_effects & EFFECT_SSS), GPU_STENCIL_BIT);
|
||||||
GPU_framebuffer_clear(fbl->main_fb, clear_bits, clear_col, clear_depth, clear_stencil);
|
GPU_framebuffer_clear(fbl->main_fb, clear_bits, clear_col, clear_depth, clear_stencil);
|
||||||
|
|
||||||
/* Depth prepass */
|
/* Depth pre-pass. */
|
||||||
DRW_stats_group_start("Prepass");
|
DRW_stats_group_start("Prepass");
|
||||||
DRW_draw_pass(psl->depth_ps);
|
DRW_draw_pass(psl->depth_ps);
|
||||||
DRW_stats_group_end();
|
DRW_stats_group_end();
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace blender::eevee {
|
|||||||
class Instance;
|
class Instance;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fullscreen textures containing geometric and surface data.
|
* Full-screen textures containing geometric and surface data.
|
||||||
* Used by deferred shading passes. Only one gbuffer is allocated per view
|
* Used by deferred shading passes. Only one gbuffer is allocated per view
|
||||||
* and is reused for each deferred layer. This is why there can only be temporary
|
* and is reused for each deferred layer. This is why there can only be temporary
|
||||||
* texture inside it.
|
* texture inside it.
|
||||||
@@ -86,4 +86,4 @@ struct GBuffer {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace blender::eevee
|
} // namespace blender::eevee
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ set(LIB
|
|||||||
|
|
||||||
blender_add_lib(bf_ply "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
blender_add_lib(bf_ply "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
||||||
|
|
||||||
if (WITH_GTESTS)
|
if(WITH_GTESTS)
|
||||||
set(TEST_SRC
|
set(TEST_SRC
|
||||||
tests/io_ply_importer_test.cc
|
tests/io_ply_importer_test.cc
|
||||||
tests/io_ply_exporter_test.cc
|
tests/io_ply_exporter_test.cc
|
||||||
|
|||||||
@@ -786,11 +786,12 @@ void USDMaterialReader::convert_usd_primvar_reader_float2(
|
|||||||
|
|
||||||
/* Set the texmap name. */
|
/* Set the texmap name. */
|
||||||
pxr::UsdShadeInput varname_input = usd_shader.GetInput(usdtokens::varname);
|
pxr::UsdShadeInput varname_input = usd_shader.GetInput(usdtokens::varname);
|
||||||
|
|
||||||
/* First check if the shader's "varname" input is connected to another source,
|
/* First check if the shader's "varname" input is connected to another source,
|
||||||
* and use that instead if so. */
|
* and use that instead if so. */
|
||||||
if (varname_input) {
|
if (varname_input) {
|
||||||
for (const pxr::UsdShadeConnectionSourceInfo& source_info : varname_input.GetConnectedSources()) {
|
for (const pxr::UsdShadeConnectionSourceInfo &source_info :
|
||||||
|
varname_input.GetConnectedSources()) {
|
||||||
pxr::UsdShadeShader shader = pxr::UsdShadeShader(source_info.source.GetPrim());
|
pxr::UsdShadeShader shader = pxr::UsdShadeShader(source_info.source.GetPrim());
|
||||||
pxr::UsdShadeInput secondary_varname_input = shader.GetInput(source_info.sourceName);
|
pxr::UsdShadeInput secondary_varname_input = shader.GetInput(source_info.sourceName);
|
||||||
if (secondary_varname_input) {
|
if (secondary_varname_input) {
|
||||||
@@ -799,7 +800,7 @@ void USDMaterialReader::convert_usd_primvar_reader_float2(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (varname_input) {
|
if (varname_input) {
|
||||||
pxr::VtValue varname_val;
|
pxr::VtValue varname_val;
|
||||||
/* The varname input may be a string or TfToken, so just cast it to a string.
|
/* The varname input may be a string or TfToken, so just cast it to a string.
|
||||||
|
|||||||
@@ -697,7 +697,7 @@ ModifierTypeInfo modifierType_Ocean = {
|
|||||||
/*icon*/ ICON_MOD_OCEAN,
|
/*icon*/ ICON_MOD_OCEAN,
|
||||||
|
|
||||||
/*copyData*/ copyData,
|
/*copyData*/ copyData,
|
||||||
/*deformMatrices_DM*/ nullptr,
|
/*deformMatrices*/ nullptr,
|
||||||
|
|
||||||
/*deformMatrices*/ nullptr,
|
/*deformMatrices*/ nullptr,
|
||||||
/*deformVertsEM*/ nullptr,
|
/*deformVertsEM*/ nullptr,
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ void BPy_BM_init_types_select(void)
|
|||||||
|
|
||||||
BPy_BMEditSelSeq_Type.tp_iter = (getiterfunc)bpy_bmeditselseq_iter;
|
BPy_BMEditSelSeq_Type.tp_iter = (getiterfunc)bpy_bmeditselseq_iter;
|
||||||
|
|
||||||
/* only 1 iteratir so far */
|
/* Only 1 iterator so far. */
|
||||||
BPy_BMEditSelIter_Type.tp_iternext = (iternextfunc)bpy_bmeditseliter_next;
|
BPy_BMEditSelIter_Type.tp_iternext = (iternextfunc)bpy_bmeditseliter_next;
|
||||||
|
|
||||||
BPy_BMEditSelSeq_Type.tp_dealloc = NULL; //(destructor)bpy_bmeditselseq_dealloc;
|
BPy_BMEditSelSeq_Type.tp_dealloc = NULL; //(destructor)bpy_bmeditselseq_dealloc;
|
||||||
|
|||||||
Reference in New Issue
Block a user