Skip to content

[Feature]: SetSampler* support #129

Description

@jeffwtm

Pre-submission Checklist

  • I have read the README features list
  • I have read the FAQ Wiki
  • I have searched existing issues and this feature hasn't been requested
  • I have verified this feature doesn't already exist in the package

Problem Statement

ImGui supports setting the sampler via:

draw_list->AddCallback(ImGui::GetPlatformIO().DrawCallback_SetSamplerNearest);
draw_list->AddImage(....);

Feature described here: ocornut/imgui#9378

However, the DrawCallbacks are not currently exposed by ImGuiPlatformIOPtr (I couldn't find them in the backends either, not sure if anything needs to be added there).

Would be great to add these if it's not a difficult change!

Proposed Solution

Expose DrawCallback_ResetRenderState, DrawCallback_SetSamplerLinear, and DrawCallback_SetSamplerNearest in ImGuiPlatformIOPtr for all backends.

Alternatives Considered

No response

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions