Skip to content

RenderCacheKey constructor

Identifies a resident resource in an IRenderResourceCache; keys with the same values name the same content on the same device generation.

public RenderCacheKey(RenderCacheEntryKind Kind, int PixelWidth, int PixelHeight, double DpiScale,
RenderPixelFormat Format, ulong SourceVersion, ulong DeviceId, string? Scope = null,
uint DeviceGeneration = 0, ulong ContextId = 0)
parameter description
Kind What the entry holds.
PixelWidth Width in device pixels.
PixelHeight Height in device pixels.
DpiScale DPI scale the content was rendered at.
Format Pixel format.
SourceVersion Version of the source the content was derived from.
DeviceId Device the resource belongs to.
Scope Optional caller-defined scope that separates entries of the same kind.
DeviceGeneration Device generation the resource was created in.
ContextId Context within the device, when the device has several.