Add CreateInfo for GPU_SHADER_2D_WIDGET_SHADOW #95012

Closed
opened 2022-01-18 13:30:32 +01:00 by Jeroen Bakker · 13 comments
Member

See parent task for more details.

  • Vertex buffer
    ** vflag
  • PushConstant
    ** ModelViewProjectionMatrix
  • Uniform Buffer
    ** parameters- [x] (but use the aliases inside the shader (recti, rect, radsi, rads, roundCorners)
See parent task for more details. * Vertex buffer ** `vflag` * PushConstant ** `ModelViewProjectionMatrix` * Uniform Buffer ** `parameters- [x]` (but use the aliases inside the shader (`recti`, `rect`, `radsi`, `rads`, `roundCorners`)
Author
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @Sonny-Campbell

Added subscriber: @Sonny-Campbell

Hey @Jeroen-Bakker, I have a change locally for this task that compiles and runs fine, but I'm not 100% sure what I should be looking for. Where exactly should I be looking for the shadow?

I'd like to set some very obviously weird values to make sure my changes are actually being applied and doing something, and then validate my change results in the expected look.

Hey @Jeroen-Bakker, I have a change locally for this task that compiles and runs fine, but I'm not 100% sure what I should be looking for. Where exactly should I be looking for the shadow? I'd like to set some very obviously weird values to make sure my changes are actually being applied and doing _something_, and then validate my change results in the expected look.

So I did some more digging and from what I can tell, the only place GPU_SHADER_2D_WIDGET_SHADOW is used is in ui_draw_dropshadow() in interface_draw.c, however ui_draw_dropshadow() isn't actually called anywhere.

Is this something that we can remove entirely, or is it something that needs to stick around for api reasons?

So I did some more digging and from what I can tell, the only place GPU_SHADER_2D_WIDGET_SHADOW is used is in ui_draw_dropshadow() in interface_draw.c, however ui_draw_dropshadow() isn't actually called anywhere. Is this something that we can remove entirely, or is it something that needs to stick around for api reasons?
Author
Member

Hi thanks for your effort, could be a shader for addon widgets will ask around if someone knows and let you know.

Have you already uploaded the patch?

Hi thanks for your effort, could be a shader for addon widgets will ask around if someone knows and let you know. Have you already uploaded the patch?

Happy to help!

I haven't uploaded it yet, but I added the ui_draw_dropshadow() call into another function to get it tested and all seems to be working as expected. I can hold off uploading anything until we have an answer, and grab one of the other CreateInfo tasks in the meantime?

Happy to help! I haven't uploaded it yet, but I added the ui_draw_dropshadow() call into another function to get it tested and all seems to be working as expected. I can hold off uploading anything until we have an answer, and grab one of the other CreateInfo tasks in the meantime?
Author
Member

@Sonny-Campbell if you have a patch it is better to upload it so we can have a look.
Seems that the shader is used by the node editor to draw shaders borders around the nodes.

@Sonny-Campbell if you have a patch it is better to upload it so we can have a look. Seems that the shader is used by the node editor to draw shaders borders around the nodes.

Added subscriber: @Sanskar-M-Chaubey

Added subscriber: @Sanskar-M-Chaubey
Member

Added subscriber: @xsmingerfan

Added subscriber: @xsmingerfan
ming self-assigned this 2022-04-01 16:00:47 +02:00
Member

Added subscriber: @jeroen-10

Added subscriber: @jeroen-10
Member

@Jeroen-Bakker Hi, I upload a diff on this task. Can you review it?

@Jeroen-Bakker Hi, I upload a diff on this task. Can you review it?
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#95012
No description provided.