Vulkan: Push constants #104880
|
@ -159,12 +159,8 @@ static void camera_blend_read_expand(BlendExpander *expander, ID *id)
|
|||
BLO_expand(expander, ca->ipo); // XXX deprecated - old animation system
|
||||
|
||||
LISTBASE_FOREACH (CameraBGImage *, bgpic, &ca->bg_images) {
|
||||
if (bgpic->source == CAM_BGIMG_SOURCE_IMAGE) {
|
||||
BLO_expand(expander, bgpic->ima);
|
||||
}
|
||||
else if (bgpic->source == CAM_BGIMG_SOURCE_MOVIE) {
|
||||
BLO_expand(expander, bgpic->ima);
|
||||
}
|
||||
BLO_expand(expander, bgpic->ima);
|
||||
BLO_expand(expander, bgpic->clip);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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])
|
||||
{
|
||||
/* we could use M_PI as pi_thresh: which is correct but 5.1 gives better results.
|
||||
* Checked with baking actions to fcurves - campbell */
|
||||
const float pi_thresh = (5.1f);
|
||||
/* When the rotation exceeds 180 degrees, it can be wrapped by 360 degrees
|
||||
* to produce a closer match, see !104856. */
|
||||
const float pi_thresh = (float)M_PI;
|
||||
const float pi_x2 = (2.0f * (float)M_PI);
|
||||
|
||||
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_);
|
||||
}
|
||||
|
||||
void VKShader::warm_cache(int /*limit*/)
|
||||
{
|
||||
}
|
||||
|
||||
bool VKShader::finalize(const shader::ShaderCreateInfo *info)
|
||||
{
|
||||
if (compilation_failed_) {
|
||||
|
|
|
@ -38,7 +38,7 @@ class VKShader : public Shader {
|
|||
void fragment_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;
|
||||
void warm_cache(int limit) override{};
|
||||
void warm_cache(int limit) override;
|
||||
|
||||
void transform_feedback_names_set(Span<const char *> name_list,
|
||||
eGPUShaderTFBType geom_type) override;
|
||||
|
|
Loading…
Reference in New Issue