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
Texture from PixImage

How do I create a Texture : ITexture from a PixImage?

I actually want to create a Texture from a Stream, this is how far I got:

let s = GetStream( ... )
let p = (PixImage.Create s)
let t = PixTexture2d(PixImageMipMap [| p |], true) :> ITexture

Is this correct?

Votes Newest

Answers 2


Yes this is the only way atm. Not exactly convenient but we never came up with anything better :-)

  
  
Posted 2 years ago

|> Sg.diffuseTexture texture ( i |> Mod.map ( fun img -> (PixTexture2d(PixImageMipMap [| img |], TextureParams.mipmapped)) :> ITexture))
  
  
Posted one year ago
Edited one year ago
786 Views
2 Answers
2 years ago
5 months ago
Tags