Cleanup: use our own conventions for tags in comments
This commit is contained in:
@@ -711,10 +711,10 @@ static char *code_generate_vertex(GPUNodeGraph *graph,
|
||||
LISTBASE_FOREACH (GPUMaterialAttribute *, attr, &graph->attributes) {
|
||||
const char *type_str = gpu_data_type_to_string(attr->gputype);
|
||||
const char *prefix = attr_prefix_get(attr->type);
|
||||
/* XXX FIXME : see notes in mesh_render_data_create() */
|
||||
/* NOTE : Replicate changes to mesh_render_data_create() in draw_cache_impl_mesh.c */
|
||||
/* XXX FIXME: see notes in mesh_render_data_create() */
|
||||
/* NOTE: Replicate changes to mesh_render_data_create() in draw_cache_impl_mesh.c */
|
||||
if (attr->type == CD_ORCO) {
|
||||
/* OPTI : orco is computed from local positions, but only if no modifier is present. */
|
||||
/* OPTI: orco is computed from local positions, but only if no modifier is present. */
|
||||
BLI_dynstr_append(ds, datatoc_gpu_shader_common_obinfos_lib_glsl);
|
||||
BLI_dynstr_append(ds, "DEFINE_ATTR(vec4, orco);\n");
|
||||
}
|
||||
|
||||
@@ -437,7 +437,7 @@ void GPU_framebuffer_blit(GPUFrameBuffer *gpufb_read,
|
||||
|
||||
fb_read->blit_to(blit_buffers, read_slot, fb_write, write_slot, 0, 0);
|
||||
|
||||
/* FIXME(fclem) sRGB is not saved. */
|
||||
/* FIXME(@fclem): sRGB is not saved. */
|
||||
prev_fb->bind(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ void ShaderCreateInfo::validate(const ShaderCreateInfo &other_info)
|
||||
}
|
||||
}
|
||||
{
|
||||
/* TODO(fclem) Push constant validation. */
|
||||
/* TODO(@fclem): Push constant validation. */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ void Shader::print_log(Span<const char *> sources,
|
||||
found_line_id = true;
|
||||
break;
|
||||
}
|
||||
/* TODO(fclem) Make this an option to display N lines before error. */
|
||||
/* TODO(@fclem): Make this an option to display N lines before error. */
|
||||
#if 0 /* Uncomment to print shader file up to the error line to have more context. */
|
||||
BLI_dynstr_appendf(dynstr, "%5d | ", src_line_index);
|
||||
BLI_dynstr_nappend(dynstr, src_line, (src_line_end + 1) - src_line);
|
||||
|
||||
@@ -370,7 +370,7 @@ static void print_interface(std::ostream &os,
|
||||
const StageInterfaceInfo &iface,
|
||||
const StringRefNull &suffix = "")
|
||||
{
|
||||
/* TODO(fclem) Move that to interface check. */
|
||||
/* TODO(@fclem): Move that to interface check. */
|
||||
// if (iface.instance_name.is_empty()) {
|
||||
// BLI_assert_msg(0, "Interfaces require an instance name for geometry shader.");
|
||||
// std::cout << iface.name << ": Interfaces require an instance name for geometry shader.\n";
|
||||
|
||||
@@ -18,7 +18,7 @@ void node_bsdf_diffuse(vec4 color, float roughness, vec3 N, out Closure result)
|
||||
|
||||
result.radiance = out_Diffuse_0.radiance;
|
||||
|
||||
/* TODO(fclem) Try to not use this. */
|
||||
/* TODO(@fclem): Try to not use this. */
|
||||
closure_load_ssr_data(vec3(0.0), 0.0, in_Diffuse_0.N, -1.0, result);
|
||||
}
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ void node_bsdf_principled(vec4 base_color,
|
||||
float btdf = (do_multiscatter != 0.0) ?
|
||||
1.0 :
|
||||
btdf_lut(NV, in_Refraction_3.roughness, in_Refraction_3.ior).x;
|
||||
/* TODO(fclem) This could be going to a transmission render pass instead. */
|
||||
/* TODO(@fclem): This could be going to a transmission render pass instead. */
|
||||
out_Refraction_3.radiance *= btdf;
|
||||
out_Refraction_3.radiance = render_pass_glossy_mask(vec3(1), out_Refraction_3.radiance);
|
||||
out_Refraction_3.radiance *= base_color.rgb;
|
||||
|
||||
@@ -21,7 +21,7 @@ void node_bsdf_refraction(vec4 color, float roughness, float ior, vec3 N, out Cl
|
||||
|
||||
result.radiance = out_Refraction_0.radiance;
|
||||
|
||||
/* TODO(fclem) Try to not use this. */
|
||||
/* TODO(@fclem): Try to not use this. */
|
||||
result.ssr_normal = normal_encode(mat3(ViewMatrix) * in_Refraction_0.N,
|
||||
viewCameraVec(viewPosition));
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ void node_subsurface_scattering(vec4 color,
|
||||
|
||||
closure_load_sss_data(scale, out_Diffuse_0.radiance, color.rgb, int(sss_id), result);
|
||||
|
||||
/* TODO(fclem) Try to not use this. */
|
||||
/* TODO(@fclem): Try to not use this. */
|
||||
closure_load_ssr_data(vec3(0.0), 0.0, in_Diffuse_0.N, -1.0, result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user