Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions test/Feature/HLSLLib/f32tof16.test
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ Buffers:
- Name: In
Format: Float32
Stride: 4
Data: [ 0, 6.0e-08, 6.09756e-05, 6.10352e-05, 0.333252,
0.999512, 1, 1.00098, 65504, 3.14159, 1, -0, inf, -inf,
Data: [ 0, 0.125, 0.25, 6.10352e-05, 0.333252,
0.999512, 1, 1.00098, 65504, 3.14159, 1, -0, 100.0, -100.0,
-0.824219, 42.0 ]
- Name: Out
Format: UInt32
Expand All @@ -58,7 +58,8 @@ Buffers:
- Name: ExpectedOut # The result we expect
Format: UInt32
Stride: 4
Data: [ 0x0, 0x0001, 0x03ff, 0x0400, 0x3555, 0x3bff, 0x3c00, 0x3c01, 0x7bff, 0x4248, 0x3c00, 0x8000, 0x7c00, 0xfc00, 0xba98, 0x5140]
# f32tof16 represents f16 in the lower half of resulting uint
Data: [ 0x0, 0x3000, 0x03400, 0x0400, 0x3555, 0x3bff, 0x3c00, 0x3c01, 0x7bff, 0x4248, 0x3c00, 0x8000, 0x5640, 0xD640, 0xba98, 0x5140]
Results:
- Result: Test1
Rule: BufferExact
Expand Down
Loading