53 PassSimple anti_aliasing_ps_ = {
"AntiAliasing"};
60 if (res.is_selection()) {
61 anti_aliasing_ps_.init();
66 const bool do_background_fetch =
state.xray_enabled_and_not_wire &&
state.is_space_v3d() &&
74 pass.
shader_set(res.shaders->anti_aliasing.get());
81 pass.
push_constant(
"do_background_fetch", do_background_fetch);
88 framebuffer_ref_ = framebuffer;
89 manager.submit(anti_aliasing_ps_);
void draw_procedural(GPUPrimType primitive, uint instance_len, uint vertex_len, uint vertex_first=-1, ResourceIDRange res_id={}, uint custom_id=0)
void framebuffer_set(gpu::FrameBuffer **framebuffer)
void shader_set(gpu::Shader *shader)
void bind_texture(const char *name, gpu::Texture *texture, GPUSamplerState state=sampler_auto)
void state_set(DRWState state, int clip_plane_count=0)
void bind_ubo(const char *name, gpu::UniformBuf *buffer)
void push_constant(const char *name, const float &data)
void begin_sync(Resources &res, const State &state) final
void draw_output(Framebuffer &framebuffer, Manager &manager, View &) final
#define DRW_CLIPPING_UBO_SLOT
#define OVERLAY_GLOBALS_SLOT
detail::Pass< command::DrawCommandBuf > PassSimple
@ USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE
@ DRW_STATE_BLEND_ALPHA_PREMUL