比较提交
合并到: unity-tech-cn:main
unity-tech-cn:/main
unity-tech-cn:/readback_mode
unity-tech-cn:/fix-editor-pause
unity-tech-cn:/docs
unity-tech-cn:/format
unity-tech-cn:/dr-test1
unity-tech-cn:/fix-compile
unity-tech-cn:/fix-links
unity-tech-cn:/fix_startup_exception
unity-tech-cn:/fix-docs
unity-tech-cn:/fix_label_id_report
unity-tech-cn:/update-setup-steps
unity-tech-cn:/labeler_mock
unity-tech-cn:/publish-fix
unity-tech-cn:/result_visualization
unity-tech-cn:/labeler_mock_mb
unity-tech-cn:/labeler_mock_on_camera
unity-tech-cn:/0.1.0-staging
unity-tech-cn:/dr-test2
unity-tech-cn:/release_cleanup
unity-tech-cn:/RC_0.2.0-preview.1
unity-tech-cn:/aisv614_0.2.0
unity-tech-cn:/aisv614_fix
unity-tech-cn:/aisv647_visualizations
unity-tech-cn:/RC-0.2.0-preview.1
unity-tech-cn:/fix_seg_colors
unity-tech-cn:/test
unity-tech-cn:/0.3.0-staging
unity-tech-cn:/aisv565_bbox3d
unity-tech-cn:/aisv749_viz_mem_leak_bug
unity-tech-cn:/aisv754_seg_alpha_bug
unity-tech-cn:/test_request_tracking_completion
unity-tech-cn:/test_new_versions
unity-tech-cn:/usim-randomization
unity-tech-cn:/with_cloud_tests
unity-tech-cn:/0.2.0-staging
unity-tech-cn:/parameter-bahaviours
unity-tech-cn:/upgrade_deps
unity-tech-cn:/0.4.0-staging
unity-tech-cn:/0.5.0-staging-2020.1
unity-tech-cn:/0.5.0-staging
unity-tech-cn:/resint_updates
unity-tech-cn:/tutorial-spelling-fix
unity-tech-cn:/priyesh-urp-dist-render
unity-tech-cn:/multiple-perception-cameras
unity-tech-cn:/pre_release_tests_nov2020
unity-tech-cn:/0.6.0-staging
unity-tech-cn:/fix_performance_tests
unity-tech-cn:/manual_capture
unity-tech-cn:/fod_generator_randomization_changes
unity-tech-cn:/multipleCameras
unity-tech-cn:/Labelbug1101
unity-tech-cn:/replace_index_md
unity-tech-cn:/depth_occlusion
unity-tech-cn:/0.8.0-preview.1_staging
unity-tech-cn:/validation-tool
unity-tech-cn:/addressables-test
unity-tech-cn:/int_tests_on_hdrp
unity-tech-cn:/keypoint_self_occlusion
unity-tech-cn:/seg_opacity
unity-tech-cn:/foreground_object_bounds_normalization
unity-tech-cn:/generic-asset-sources
unity-tech-cn:/local-position-labeler
unity-tech-cn:/pyrception-integration
unity-tech-cn:/fix_sampler_rounding_issue
unity-tech-cn:/h-i
unity-tech-cn:/0.7.0-staging
unity-tech-cn:/Released-0.6.0-preview.1
unity-tech-cn:/moved-from-attribute
unity-tech-cn:/frontpage_shuffle
unity-tech-cn:/coco_export
unity-tech-cn:/public-spec
unity-tech-cn:/fix-3Dexception-typo
unity-tech-cn:/feat-light-randomizer
unity-tech-cn:/schema-0.1.0
unity-tech-cn:/data-cap-update
unity-tech-cn:/0.8.0.preview.4_staging
unity-tech-cn:/faq-page
unity-tech-cn:/orthographic-camera-metadata
unity-tech-cn:/update-docs-0.8.0.preview.4
unity-tech-cn:/priyesh-cloudrendering-test
unity-tech-cn:/Release_0.8.0-preview.4
unity-tech-cn:/tutorial_patch
unity-tech-cn:/add_imageLink_field
unity-tech-cn:/fix_label_config_editor_indexing
unity-tech-cn:/coco_perception_output_hybrid
unity-tech-cn:/fxaa-clarification
unity-tech-cn:/no_editor_coverage
unity-tech-cn:/keypoint_self_occlusion_2020_3
unity-tech-cn:/for_vulkan_mem_test
unity-tech-cn:/solo_support
unity-tech-cn:/fix_multi_cam
unity-tech-cn:/randomizer-serialization-update
unity-tech-cn:/semantic_shader_tests
unity-tech-cn:/revert-sample-scene
unity-tech-cn:/package-analytics
unity-tech-cn:/github-action
unity-tech-cn:/fix-one-extra-frame-before-scenario-starts
unity-tech-cn:/scene_gen
unity-tech-cn:/0.9.0.preview.1_staging
unity-tech-cn:/tag-RC-0.9.0.preview.2
unity-tech-cn:/remove-usim-from-docs
unity-tech-cn:/docs/fix-readme-image-names
unity-tech-cn:/fix-links/jonh
unity-tech-cn:/addressables-test/scheduledcapture
unity-tech-cn:/orthographic-camera-metadata/additions
unity-tech-cn:/github-action/test
拉取从: unity-tech-cn:upgrade_deps
unity-tech-cn:/main
unity-tech-cn:/readback_mode
unity-tech-cn:/fix-editor-pause
unity-tech-cn:/docs
unity-tech-cn:/format
unity-tech-cn:/dr-test1
unity-tech-cn:/fix-compile
unity-tech-cn:/fix-links
unity-tech-cn:/fix_startup_exception
unity-tech-cn:/fix-docs
unity-tech-cn:/fix_label_id_report
unity-tech-cn:/update-setup-steps
unity-tech-cn:/labeler_mock
unity-tech-cn:/publish-fix
unity-tech-cn:/result_visualization
unity-tech-cn:/labeler_mock_mb
unity-tech-cn:/labeler_mock_on_camera
unity-tech-cn:/0.1.0-staging
unity-tech-cn:/dr-test2
unity-tech-cn:/release_cleanup
unity-tech-cn:/RC_0.2.0-preview.1
unity-tech-cn:/aisv614_0.2.0
unity-tech-cn:/aisv614_fix
unity-tech-cn:/aisv647_visualizations
unity-tech-cn:/RC-0.2.0-preview.1
unity-tech-cn:/fix_seg_colors
unity-tech-cn:/test
unity-tech-cn:/0.3.0-staging
unity-tech-cn:/aisv565_bbox3d
unity-tech-cn:/aisv749_viz_mem_leak_bug
unity-tech-cn:/aisv754_seg_alpha_bug
unity-tech-cn:/test_request_tracking_completion
unity-tech-cn:/test_new_versions
unity-tech-cn:/usim-randomization
unity-tech-cn:/with_cloud_tests
unity-tech-cn:/0.2.0-staging
unity-tech-cn:/parameter-bahaviours
unity-tech-cn:/upgrade_deps
unity-tech-cn:/0.4.0-staging
unity-tech-cn:/0.5.0-staging-2020.1
unity-tech-cn:/0.5.0-staging
unity-tech-cn:/resint_updates
unity-tech-cn:/tutorial-spelling-fix
unity-tech-cn:/priyesh-urp-dist-render
unity-tech-cn:/multiple-perception-cameras
unity-tech-cn:/pre_release_tests_nov2020
unity-tech-cn:/0.6.0-staging
unity-tech-cn:/fix_performance_tests
unity-tech-cn:/manual_capture
unity-tech-cn:/fod_generator_randomization_changes
unity-tech-cn:/multipleCameras
unity-tech-cn:/Labelbug1101
unity-tech-cn:/replace_index_md
unity-tech-cn:/depth_occlusion
unity-tech-cn:/0.8.0-preview.1_staging
unity-tech-cn:/validation-tool
unity-tech-cn:/addressables-test
unity-tech-cn:/int_tests_on_hdrp
unity-tech-cn:/keypoint_self_occlusion
unity-tech-cn:/seg_opacity
unity-tech-cn:/foreground_object_bounds_normalization
unity-tech-cn:/generic-asset-sources
unity-tech-cn:/local-position-labeler
unity-tech-cn:/pyrception-integration
unity-tech-cn:/fix_sampler_rounding_issue
unity-tech-cn:/h-i
unity-tech-cn:/0.7.0-staging
unity-tech-cn:/Released-0.6.0-preview.1
unity-tech-cn:/moved-from-attribute
unity-tech-cn:/frontpage_shuffle
unity-tech-cn:/coco_export
unity-tech-cn:/public-spec
unity-tech-cn:/fix-3Dexception-typo
unity-tech-cn:/feat-light-randomizer
unity-tech-cn:/schema-0.1.0
unity-tech-cn:/data-cap-update
unity-tech-cn:/0.8.0.preview.4_staging
unity-tech-cn:/faq-page
unity-tech-cn:/orthographic-camera-metadata
unity-tech-cn:/update-docs-0.8.0.preview.4
unity-tech-cn:/priyesh-cloudrendering-test
unity-tech-cn:/Release_0.8.0-preview.4
unity-tech-cn:/tutorial_patch
unity-tech-cn:/add_imageLink_field
unity-tech-cn:/fix_label_config_editor_indexing
unity-tech-cn:/coco_perception_output_hybrid
unity-tech-cn:/fxaa-clarification
unity-tech-cn:/no_editor_coverage
unity-tech-cn:/keypoint_self_occlusion_2020_3
unity-tech-cn:/for_vulkan_mem_test
unity-tech-cn:/solo_support
unity-tech-cn:/fix_multi_cam
unity-tech-cn:/randomizer-serialization-update
unity-tech-cn:/semantic_shader_tests
unity-tech-cn:/revert-sample-scene
unity-tech-cn:/package-analytics
unity-tech-cn:/github-action
unity-tech-cn:/fix-one-extra-frame-before-scenario-starts
unity-tech-cn:/scene_gen
unity-tech-cn:/0.9.0.preview.1_staging
unity-tech-cn:/tag-RC-0.9.0.preview.2
unity-tech-cn:/remove-usim-from-docs
unity-tech-cn:/docs/fix-readme-image-names
unity-tech-cn:/fix-links/jonh
unity-tech-cn:/addressables-test/scheduledcapture
unity-tech-cn:/orthographic-camera-metadata/additions
unity-tech-cn:/github-action/test
此合并请求有变更与目标分支冲突。
/.yamato/promote.yml
/.yamato/publish.yml
/.yamato/upm-ci-full.yml
/.yamato/environments.yml
/.yamato/upm-ci-testprojects.yml
/TestProjects/PerceptionHDRP/Packages/manifest.json
/TestProjects/PerceptionHDRP/Packages/packages-lock.json
/TestProjects/PerceptionHDRP/ProjectSettings/ProjectSettings.asset
/TestProjects/PerceptionHDRP/ProjectSettings/ProjectVersion.txt
/TestProjects/PerceptionURP/Packages/manifest.json
/TestProjects/PerceptionURP/Packages/packages-lock.json
/TestProjects/PerceptionURP/ProjectSettings/ProjectSettings.asset
/TestProjects/PerceptionURP/ProjectSettings/ProjectVersion.txt
/com.unity.perception/Tests/Editor/DatasetCaptureEditorTests.cs
/com.unity.perception/package.json
/com.unity.perception/CHANGELOG.md
/com.unity.perception/Runtime/GroundTruth/Resources/InstanceSegmentation.shader
/com.unity.perception/Runtime/GroundTruth/Resources/SemanticSegmentation.shader
/com.unity.perception/Documentation~/index.md
12 次代码提交
main
...
upgrade_deps
共有 22 个文件被更改,包括 191 次插入 和 66 次删除
-
8.yamato/upm-ci-testprojects.yml
-
2.yamato/publish.yml
-
8.yamato/promote.yml
-
49.yamato/upm-ci-full.yml
-
11.yamato/environments.yml
-
5TestProjects/PerceptionHDRP/ProjectSettings/ProjectSettings.asset
-
4TestProjects/PerceptionHDRP/ProjectSettings/ProjectVersion.txt
-
6TestProjects/PerceptionHDRP/Packages/manifest.json
-
12TestProjects/PerceptionHDRP/Packages/packages-lock.json
-
29TestProjects/PerceptionURP/ProjectSettings/ProjectSettings.asset
-
4TestProjects/PerceptionURP/ProjectSettings/ProjectVersion.txt
-
6TestProjects/PerceptionURP/Packages/manifest.json
-
12TestProjects/PerceptionURP/Packages/packages-lock.json
-
4com.unity.perception/Documentation~/index.md
-
19com.unity.perception/Tests/Editor/DatasetCaptureEditorTests.cs
-
6com.unity.perception/Tests/Editor/BuildPerceptionPlayer.cs
-
6com.unity.perception/CHANGELOG.md
-
4com.unity.perception/Runtime/GroundTruth/Resources/InstanceSegmentation.shader
-
3com.unity.perception/Runtime/GroundTruth/Resources/SemanticSegmentation.shader
-
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