浏览代码
Upgrade deps (#68)
Upgrade deps (#68)
* Upgrading projects and dependencies * Adding additional editor versions for testing. * Adding test ensuring datasets are generated on exiting play mode. * Reducing test set for per-commit to a single editor. Removing use of IncludeTestAssemblies from BuildPlayer* tests to work around mysterious issue with shader compilation. * Fix yaml * Adding "All Tests" which triggers nightly * Switching to newer 2019.4 * Fixing instance and semantic segmentation shaders in 2020.1. Bumping package version. Removing publish tests from all tests and renaming * Promotion test rename * Update to latest capture and core. Switch off 2020.2 testing because it is not currently supported. Switch CI back to 2019.4.6f1 due to linux editor import hang. * Updating changelog/main
GitHub
4 年前
当前提交
0baa69e3
共有 22 个文件被更改,包括 193 次插入 和 69 次删除
-
11.yamato/environments.yml
-
8.yamato/promote.yml
-
2.yamato/publish.yml
-
49.yamato/upm-ci-full.yml
-
8.yamato/upm-ci-testprojects.yml
-
6TestProjects/PerceptionHDRP/Packages/manifest.json
-
12TestProjects/PerceptionHDRP/Packages/packages-lock.json
-
5TestProjects/PerceptionHDRP/ProjectSettings/ProjectSettings.asset
-
4TestProjects/PerceptionHDRP/ProjectSettings/ProjectVersion.txt
-
6TestProjects/PerceptionURP/Packages/manifest.json
-
17TestProjects/PerceptionURP/Packages/packages-lock.json
-
29TestProjects/PerceptionURP/ProjectSettings/ProjectSettings.asset
-
4TestProjects/PerceptionURP/ProjectSettings/ProjectVersion.txt
-
6com.unity.perception/CHANGELOG.md
-
4com.unity.perception/Documentation~/index.md
-
4com.unity.perception/Runtime/GroundTruth/Resources/InstanceSegmentation.shader
-
3com.unity.perception/Runtime/GroundTruth/Resources/SemanticSegmentation.shader
-
6com.unity.perception/Tests/Editor/BuildPerceptionPlayer.cs
-
19com.unity.perception/Tests/Editor/DatasetCaptureEditorTests.cs
-
6com.unity.perception/package.json
-
50com.unity.perception/Runtime/GroundTruth/Resources/Packing.hlsl
-
3com.unity.perception/Runtime/GroundTruth/Resources/Packing.hlsl.meta
|
|||
m_EditorVersion: 2019.4.7f1 |
|||
m_EditorVersionWithRevision: 2019.4.7f1 (e992b1a16e65) |
|||
m_EditorVersion: 2019.4.8f1 |
|||
m_EditorVersionWithRevision: 2019.4.8f1 (60781d942082) |
|
|||
m_EditorVersion: 2019.4.7f1 |
|||
m_EditorVersionWithRevision: 2019.4.7f1 (e992b1a16e65) |
|||
m_EditorVersion: 2019.4.8f1 |
|||
m_EditorVersionWithRevision: 2019.4.8f1 (60781d942082) |
|
|||
#ifndef UNITY_PERCEPTION_PACKING_INCLUDED |
|||
#define UNITY_PERCEPTION_PACKING_INCLUDED |
|||
|
|||
#define real float |
|||
#define real2 float2 |
|||
#define real3 float3 |
|||
#define real4 float4 |
|||
|
|||
// Packs an integer stored using at most 'numBits' into a [0..1] real. |
|||
real PackInt(uint i, uint numBits) |
|||
{ |
|||
uint maxInt = (1u << numBits) - 1u; |
|||
return saturate(i * rcp(maxInt)); |
|||
} |
|||
|
|||
// Unpacks a [0..1] real into an integer of size 'numBits'. |
|||
uint UnpackInt(real f, uint numBits) |
|||
{ |
|||
uint maxInt = (1u << numBits) - 1u; |
|||
return (uint)(f * maxInt + 0.5); // Round instead of truncating |
|||
} |
|||
|
|||
#ifndef INTRINSIC_BITFIELD_EXTRACT |
|||
// Unsigned integer bit field extraction. |
|||
// Note that the intrinsic itself generates a vector instruction. |
|||
// Wrap this function with WaveReadLaneFirst() to get scalar output. |
|||
uint BitFieldExtract(uint data, uint offset, uint numBits) |
|||
{ |
|||
uint mask = (1u << numBits) - 1u; |
|||
return (data >> offset) & mask; |
|||
} |
|||
#endif // INTRINSIC_BITFIELD_EXTRACT |
|||
|
|||
//----------------------------------------------------------------------------- |
|||
// Float packing |
|||
//----------------------------------------------------------------------------- |
|||
|
|||
// src must be between 0.0 and 1.0 |
|||
uint PackFloatToUInt(real src, uint offset, uint numBits) |
|||
{ |
|||
return UnpackInt(src, numBits) << offset; |
|||
} |
|||
|
|||
real UnpackUIntToFloat(uint src, uint offset, uint numBits) |
|||
{ |
|||
uint maxInt = (1u << numBits) - 1u; |
|||
return real(BitFieldExtract(src, offset, numBits)) * rcp(maxInt); |
|||
} |
|||
|
|||
#endif // UNITY_PACKING_INCLUDED |
|
|||
fileFormatVersion: 2 |
|||
guid: 9af0f66010764cc5a8ef4acccc164cdb |
|||
timeCreated: 1598539851 |
撰写
预览
正在加载...
取消
保存
Reference in new issue