Skip to content

Fix render pass viewport in custom_shader example#2738

Merged
hecrj merged 1 commit intoiced-rs:masterfrom
jsatka:fix-custom-shader-example
Nov 20, 2025
Merged

Fix render pass viewport in custom_shader example#2738
hecrj merged 1 commit intoiced-rs:masterfrom
jsatka:fix-custom-shader-example

Conversation

@jsatka
Copy link
Contributor

@jsatka jsatka commented Jan 21, 2025

Fix the shader widget render pass viewport by setting it to the clip bounds of the shader widget in the custom_shader example.

Without setting the viewport explicitly for the render pass, the viewport default is the entire bounds of the render target i.e. whole surface texture.

@hecrj hecrj force-pushed the fix-custom-shader-example branch from 01bb6f0 to 56bb4ce Compare November 20, 2025 00:30
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hecrj hecrj added this to the 0.14 milestone Nov 20, 2025
@hecrj hecrj added bug Something isn't working documentation fix labels Nov 20, 2025
@hecrj hecrj enabled auto-merge November 20, 2025 00:31
@hecrj hecrj merged commit 28ca3a5 into iced-rs:master Nov 20, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants