Skip to content

Commit

Permalink
double sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
krauthaufen committed Mar 5, 2024
1 parent 109e496 commit fa5f2f5
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 77 deletions.
4 changes: 2 additions & 2 deletions src/Libs/FShade.Core/Shader.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2047,8 +2047,8 @@ module Preprocessor =
and getOutputValues (sem : string) (value : Expr) : Preprocess<list<string * Option<Expr> * Expr>> =
state {
match value.Type with
| TypeInfo.Patterns.VectorOf (_, (TypeInfo.Patterns.Float64 | TypeInfo.Patterns.Int32 | TypeInfo.Patterns.UInt32))
| TypeInfo.Patterns.Float64 | TypeInfo.Patterns.Int32 | TypeInfo.Patterns.UInt32 ->
| TypeInfo.Patterns.VectorOf (_, (TypeInfo.Patterns.Float32 | TypeInfo.Patterns.Float64 | TypeInfo.Patterns.Int32 | TypeInfo.Patterns.UInt32))
| TypeInfo.Patterns.Float32 | TypeInfo.Patterns.Float64 | TypeInfo.Patterns.Int32 | TypeInfo.Patterns.UInt32 ->
let! value = preprocessS value
do! State.writeOutput sem { paramType = value.Type; paramInterpolation = InterpolationMode.Default }
return [sem, None, value]
Expand Down
Loading

0 comments on commit fa5f2f5

Please sign in to comment.