WIP: Vulkan: Workbench #107886
|
@ -320,10 +320,16 @@ DRWShadingGroup *DRW_shgroup_curves_create_sub(Object *object,
|
|||
|
||||
/* Fix issue with certain driver not drawing anything if there is no texture bound to
|
||||
* "ac", "au", "u" or "c". */
|
||||
DRW_shgroup_buffer_texture(shgrp, "u", g_dummy_vbo);
|
||||
DRW_shgroup_buffer_texture(shgrp, "au", g_dummy_vbo);
|
||||
DRW_shgroup_buffer_texture(shgrp, "c", g_dummy_vbo);
|
||||
DRW_shgroup_buffer_texture(shgrp, "ac", g_dummy_vbo);
|
||||
/*
|
||||
DRW_shgroup_uniform_texture(shgrp, "u", g_dummy_texture);
|
||||
DRW_shgroup_uniform_texture(shgrp, "au", g_dummy_texture);
|
||||
DRW_shgroup_uniform_texture(shgrp, "c", g_dummy_texture);
|
||||
DRW_shgroup_uniform_texture(shgrp, "ac", g_dummy_texture);
|
||||
*/
|
||||
|
||||
/* TODO: Generalize radius implementation for curves data type. */
|
||||
float hair_rad_shape = 0.0f;
|
||||
|
|
|
@ -159,6 +159,9 @@ void VKBackend::capabilities_init()
|
|||
GCaps.compute_shader_support = true;
|
||||
GCaps.shader_storage_buffer_objects_support = true;
|
||||
GCaps.shader_image_load_store_support = true;
|
||||
/* Although not used or implemented, it is required to make sure that curve/hair drawing uses the
|
||||
* right branch. This should be fixed in the draw manager. */
|
||||
GCaps.transform_feedback_support = true;
|
||||
Jeroen-Bakker marked this conversation as resolved
Outdated
|
||||
|
||||
GCaps.max_texture_size = max_ii(limits.maxImageDimension1D, limits.maxImageDimension2D);
|
||||
GCaps.max_texture_3d_size = limits.maxImageDimension3D;
|
||||
|
|
Loading…
Reference in New Issue
Can be reverted