Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
PixImage from IOutputMod<ITexture>

Can I get a PixImage fom an IOutputMod<ITexture>? I tried the code from the question How to download depth image, screenshot and it works fine, but it would be nice if I could use the texture I've already got (from using RenderTask.renderToDepth)

  
  
Posted 8 months ago
Votes Newest

Answers


hey, you basically need to do something like:

let tex : IOutputMod<ITexture> = ...
tex.Acquire() // acquires a reference to it
let currentTex = tex.GetValue(AdaptiveToken.Top) |> unbox<IBackendTexture> // we know that it's a backend-texture here
let img : PixImage = runtime.Download(currentTex) // or some other download function (including level/etc.)
tex.Release() // release our reference since we don't need the texture anymore
  
  
Posted 5 months ago