Vulkan: Clearing Storage Buffers #105487
|
@ -159,12 +159,8 @@ static void camera_blend_read_expand(BlendExpander *expander, ID *id)
|
||||||
BLO_expand(expander, ca->ipo); // XXX deprecated - old animation system
|
BLO_expand(expander, ca->ipo); // XXX deprecated - old animation system
|
||||||
|
|
||||||
LISTBASE_FOREACH (CameraBGImage *, bgpic, &ca->bg_images) {
|
LISTBASE_FOREACH (CameraBGImage *, bgpic, &ca->bg_images) {
|
||||||
if (bgpic->source == CAM_BGIMG_SOURCE_IMAGE) {
|
BLO_expand(expander, bgpic->ima);
|
||||||
BLO_expand(expander, bgpic->ima);
|
BLO_expand(expander, bgpic->clip);
|
||||||
}
|
|
||||||
else if (bgpic->source == CAM_BGIMG_SOURCE_MOVIE) {
|
|
||||||
BLO_expand(expander, bgpic->ima);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1490,9 +1490,9 @@ void rotate_eul(float beul[3], const char axis, const float angle)
|
||||||
|
|
||||||
void compatible_eul(float eul[3], const float oldrot[3])
|
void compatible_eul(float eul[3], const float oldrot[3])
|
||||||
{
|
{
|
||||||
/* we could use M_PI as pi_thresh: which is correct but 5.1 gives better results.
|
/* When the rotation exceeds 180 degrees, it can be wrapped by 360 degrees
|
||||||
* Checked with baking actions to fcurves - campbell */
|
* to produce a closer match, see !104856. */
|
||||||
const float pi_thresh = (5.1f);
|
const float pi_thresh = (float)M_PI;
|
||||||
const float pi_x2 = (2.0f * (float)M_PI);
|
const float pi_x2 = (2.0f * (float)M_PI);
|
||||||
|
|
||||||
float deul[3];
|
float deul[3];
|
||||||
|
|
|
@ -663,6 +663,10 @@ void VKShader::compute_shader_from_glsl(MutableSpan<const char *> sources)
|
||||||
build_shader_module(sources, shaderc_compute_shader, &compute_module_);
|
build_shader_module(sources, shaderc_compute_shader, &compute_module_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void VKShader::warm_cache(int /*limit*/)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
bool VKShader::finalize(const shader::ShaderCreateInfo *info)
|
bool VKShader::finalize(const shader::ShaderCreateInfo *info)
|
||||||
{
|
{
|
||||||
if (compilation_failed_) {
|
if (compilation_failed_) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ class VKShader : public Shader {
|
||||||
void fragment_shader_from_glsl(MutableSpan<const char *> sources) override;
|
void fragment_shader_from_glsl(MutableSpan<const char *> sources) override;
|
||||||
void compute_shader_from_glsl(MutableSpan<const char *> sources) override;
|
void compute_shader_from_glsl(MutableSpan<const char *> sources) override;
|
||||||
bool finalize(const shader::ShaderCreateInfo *info = nullptr) override;
|
bool finalize(const shader::ShaderCreateInfo *info = nullptr) override;
|
||||||
void warm_cache(int limit) override{};
|
void warm_cache(int limit) override;
|
||||||
|
|
||||||
void transform_feedback_names_set(Span<const char *> name_list,
|
void transform_feedback_names_set(Span<const char *> name_list,
|
||||||
eGPUShaderTFBType geom_type) override;
|
eGPUShaderTFBType geom_type) override;
|
||||||
|
|
Loading…
Reference in New Issue