mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 00:15:57 +01:00
Updated Image Loading and Displaying Examples (markdown)
parent
fc140d4a12
commit
5b9f07600e
@ -1338,7 +1338,7 @@ You can use draw callbacks to manipulate the render state, e.g. alter sampling.
|
||||
void ImDrawCallback_ImplDX11_SetSampler(const ImDrawList* parent_list, const ImDrawCmd* cmd)
|
||||
{
|
||||
ImGui_ImplDX11_RenderState* state = (ImGui_ImplDX11_RenderState*)ImGui::GetPlatformIO().Renderer_RenderState;
|
||||
ID3D11SamplerState* sampler = cmd->UserCallbackData ? (ID3D11SamplerState*)cmd->UserCallbackData : state->SamplerDefault;
|
||||
ID3D11SamplerState* sampler = cmd->UserCallbackData ? (ID3D11SamplerState*)cmd->UserCallbackData : state->SamplerLinear;
|
||||
state->DeviceContext->PSSetSamplers(0, 1, &sampler);
|
||||
}
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user