Browse Source

Backends: Metal: Update deprecated property 'sampleCount'->'rasterSampleCount' (#5603)

pull/5608/head
David Chavez 2 years ago
committed by ocornut
parent
commit
21b5fac57a
  1. 3
      backends/imgui_impl_metal.mm
  2. 1
      docs/CHANGELOG.txt

3
backends/imgui_impl_metal.mm

@ -12,6 +12,7 @@
// CHANGELOG
// (minor and older changes stripped away, please see git history for details)
// 2022-08-23: Metal: Update deprecated property 'sampleCount'->'rasterSampleCount'.
// 2022-07-05: Metal: Add dispatch synchronization.
// 2022-06-30: Metal: Use __bridge for ARC based systems.
// 2022-06-01: Metal: Fixed null dereference on exit inside command buffer completion handler.
@ -552,7 +553,7 @@ void ImGui_ImplMetal_DestroyDeviceObjects()
pipelineDescriptor.vertexFunction = vertexFunction;
pipelineDescriptor.fragmentFunction = fragmentFunction;
pipelineDescriptor.vertexDescriptor = vertexDescriptor;
pipelineDescriptor.sampleCount = self.framebufferDescriptor.sampleCount;
pipelineDescriptor.rasterSampleCount = self.framebufferDescriptor.sampleCount;
pipelineDescriptor.colorAttachments[0].pixelFormat = self.framebufferDescriptor.colorPixelFormat;
pipelineDescriptor.colorAttachments[0].blendingEnabled = YES;
pipelineDescriptor.colorAttachments[0].rgbBlendOperation = MTLBlendOperationAdd;

1
docs/CHANGELOG.txt

@ -84,6 +84,7 @@ Other Changes:
to use the Item Picker in e.g. menus. (#2673)
- Backends: Metal: Use __bridge for ARC based systems. (#5403) [@stack]
- Backends: Metal: Add dispatch synchronization. (#5447) [@luigifcruz]
- Backends: Metal: Update deprecated property 'sampleCount'->'rasterSampleCount'. (#5603) [@dcvz]
- Backends: OSX: Fixes to support full app creation in C++. (#5403) [@stack]

Loading…
Cancel
Save