Author SHA1 Message Date
Sébastien Albert 66bc054336 add usd-21-05-win64_py37 2021-12-07 17:16:25 +01:00
1016 changed files with 17300 additions and 26263 deletions

No files matched your search

+3 -17
View File
@@ -1,24 +1,10 @@
# usd_prebuilt_libraries # usd_prebuilt_libraries
USD Pre-built Libraries for windows are released : USD Pre-built Libraries for windows are released :
- [usd-21-11-win64_py39](https://github.com/LoopsCreativeStudio/usd_prebuilt_libraries/releases/tag/usd-21-11-win64_py39) ( USD 21.11, Python 3.9 ) Compatible with **Blender 3.0** - **usd-21-05-win64_py37** ( USD 21.05, Python 3.7 ) Compatible with **Blender 2.92**
- [usd-21-05-win64_py37](https://github.com/LoopsCreativeStudio/usd_prebuilt_libraries/releases/tag/usd-21-05-win64_py37) ( USD 21.05, Python 3.7 ) Compatible with **Blender 2.92** - **usd-21-11-win64_py39** ( USD 21.11, Python 3.9 ) Compatible with **Blender 3.0**
# Installation : # NVIDIA, other versions :
Add *"C:\usd-21-11-win64_py39\lib\python"* in your environment variable **PYTHONPATH**
# Usage :
In Blender 3.0 or Python 3.9, you can test if the python module works with this command:
```python
from pxr import Usd
stage = Usd.Stage.Open('path_to_file.usd')
```
More exemples here : https://developer.nvidia.com/usd/tutorials
# NVIDIA, other prebuilt versions :
- https://developer.nvidia.com/usd - https://developer.nvidia.com/usd
# USD PIXAR : # USD PIXAR :
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2017 Pixar # Copyright 2017 Pixar
# #
+1410
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
@python "%~dp0usdGenSchema" %*
+1 -5
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2016 Pixar # Copyright 2016 Pixar
# #
@@ -46,8 +46,6 @@ def GetUsdLayerMetaData(filePath):
def GetFlattenedUsdData(filePath, populationMaskPaths): def GetFlattenedUsdData(filePath, populationMaskPaths):
from pxr import Ar, Usd from pxr import Ar, Usd
if hasattr(Ar.Resolver, "ConfigureResolverForAsset"):
Ar.GetResolver().ConfigureResolverForAsset(filePath) Ar.GetResolver().ConfigureResolverForAsset(filePath)
popMask = (None if populationMaskPaths is None popMask = (None if populationMaskPaths is None
else Usd.StagePopulationMask()) else Usd.StagePopulationMask())
@@ -60,8 +58,6 @@ def GetFlattenedUsdData(filePath, populationMaskPaths):
def GetFlattenedLayerStack(filePath): def GetFlattenedLayerStack(filePath):
from pxr import Ar, Sdf, Pcp, Usd, UsdUtils from pxr import Ar, Sdf, Pcp, Usd, UsdUtils
if hasattr(Ar.Resolver, "ConfigureResolverForAsset"):
Ar.GetResolver().ConfigureResolverForAsset(filePath) Ar.GetResolver().ConfigureResolverForAsset(filePath)
stage = Usd.Stage.Open(filePath, Usd.Stage.LoadNone) stage = Usd.Stage.Open(filePath, Usd.Stage.LoadNone)
return UsdUtils.FlattenLayerStack(stage) return UsdUtils.FlattenLayerStack(stage)
+6 -29
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2018 Pixar # Copyright 2018 Pixar
# #
@@ -54,12 +54,8 @@ def _Warn(msg):
sys.stderr.write(TermColors.WARN + msg + TermColors.END + '\n') sys.stderr.write(TermColors.WARN + msg + TermColors.END + '\n')
def main(): def main():
parser = argparse.ArgumentParser(description="""Utility for checking the parser = argparse.ArgumentParser(description='Utility for checking the '
compliance of a given USD stage or a USDZ package. Only the first sample 'compliance of a given USD stage or a USDZ package.')
of any relevant time-sampled attribute is checked, currently. General
USD checks are always performed, and more restrictive checks targeted at
distributable consumer content are also applied when the "--arkit" option
is specified.""")
parser.add_argument('inputFile', type=str, nargs='?', parser.add_argument('inputFile', type=str, nargs='?',
help='Name of the input file to inspect.') help='Name of the input file to inspect.')
@@ -77,11 +73,6 @@ def main():
default='-', help='The file to which all the failed ' default='-', help='The file to which all the failed '
'checks are output. If unspecified, the failed checks ' 'checks are output. If unspecified, the failed checks '
'are output to stdout.') 'are output to stdout.')
parser.add_argument('--noAssetChecks', dest='noAssetChecks',
action='store_true', help='If specified, do NOT perform '
'extra checks to help ensure the stage or '
'package can be easily and safely referenced into '
'aggregate stages.')
parser.add_argument('--arkit', dest='arkit', action='store_true', parser.add_argument('--arkit', dest='arkit', action='store_true',
help='Check if the given USD stage is compatible with ' help='Check if the given USD stage is compatible with '
'ARKit\'s initial implementation of usdz. These assets ' 'ARKit\'s initial implementation of usdz. These assets '
@@ -99,11 +90,8 @@ def main():
outFile = args.outFile outFile = args.outFile
checker = UsdUtils.ComplianceChecker(arkit=args.arkit, checker = UsdUtils.ComplianceChecker(arkit=args.arkit,
skipARKitRootLayerCheck=False, skipARKitRootLayerCheck=False, rootPackageOnly=args.rootPackageOnly,
rootPackageOnly=args.rootPackageOnly, skipVariants=args.skipVariants, verbose=args.verbose)
skipVariants=args.skipVariants,
verbose=args.verbose,
assetLevelChecks=not args.noAssetChecks)
if not args.dumpRules and not args.inputFile: if not args.dumpRules and not args.inputFile:
parser.error("Either an inputFile or the --dumpRules option must be" parser.error("Either an inputFile or the --dumpRules option must be"
@@ -117,19 +105,11 @@ def main():
checker.CheckCompliance(inputFile) checker.CheckCompliance(inputFile)
warnings = checker.GetWarnings()
errors = checker.GetErrors() errors = checker.GetErrors()
failedChecks = checker.GetFailedChecks() failedChecks = checker.GetFailedChecks()
with _Stream(outFile, 'w') as ofp:
if len(warnings) > 0:
for msg in warnings:
# Add color if we're outputting to a terminal.
if outFile == '-':
msg = TermColors.WARN + msg + TermColors.END
_Print(ofp, msg)
if len(errors)> 0 or len(failedChecks) > 0: if len(errors)> 0 or len(failedChecks) > 0:
with _Stream(outFile, 'w') as ofp:
for msg in errors + failedChecks: for msg in errors + failedChecks:
# Add color if we're outputting to a terminal. # Add color if we're outputting to a terminal.
if outFile == '-': if outFile == '-':
@@ -138,9 +118,6 @@ def main():
print("Failed!") print("Failed!")
return 1 return 1
if len(warnings) > 0:
print("Success with warnings...")
else:
print("Success!") print("Success!")
return 0 return 0
+1 -1
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2016 Pixar # Copyright 2016 Pixar
# #
+1 -1
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2016 Pixar # Copyright 2016 Pixar
# #
+1 -1
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2016 Pixar # Copyright 2016 Pixar
# #
+4 -8
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2019 Pixar # Copyright 2019 Pixar
# #
@@ -54,10 +54,8 @@ def _SetupOpenGLContext(width=100, height=100):
glWidget = QtOpenGL.QGLWidget(glFormat) glWidget = QtOpenGL.QGLWidget(glFormat)
glWidget.setFixedSize(width, height) glWidget.setFixedSize(width, height)
# note that we need to bind the gl context here, instead of explicitly glWidget.show()
# showing the glWidget. Binding the gl context will make sure framebuffer is glWidget.setHidden(True)
# ready for gl operations.
glWidget.makeCurrent()
return glWidget return glWidget
@@ -141,9 +139,7 @@ def main():
frameRecorder = UsdAppUtils.FrameRecorder() frameRecorder = UsdAppUtils.FrameRecorder()
if args.rendererPlugin: if args.rendererPlugin:
frameRecorder.SetRendererPlugin( frameRecorder.SetRendererPlugin(args.rendererPlugin.id)
UsdAppUtils.rendererArgs.GetPluginIdFromArgument(
args.rendererPlugin))
frameRecorder.SetImageWidth(args.imageWidth) frameRecorder.SetImageWidth(args.imageWidth)
frameRecorder.SetComplexity(args.complexity.value) frameRecorder.SetComplexity(args.complexity.value)
frameRecorder.SetColorCorrectionMode(args.colorCorrectionMode) frameRecorder.SetColorCorrectionMode(args.colorCorrectionMode)
+5 -55
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2018 Pixar # Copyright 2018 Pixar
# #
@@ -27,14 +27,6 @@ from __future__ import print_function
import argparse, sys, os import argparse, sys, os
from pxr import Ar
def _HasCreateIdentifier():
return hasattr(Ar.Resolver, "CreateIdentifier")
def _HasConfigureResolverForAsset():
return hasattr(Ar.Resolver, "ConfigureResolverForAsset")
def _Msg(msg): def _Msg(msg):
sys.stdout.write(msg + '\n') sys.stdout.write(msg + '\n')
@@ -42,31 +34,12 @@ def _Err(msg):
sys.stderr.write(msg + '\n') sys.stderr.write(msg + '\n')
def _ConfigureAssetResolver(args, resolver): def _ConfigureAssetResolver(args, resolver):
if _HasConfigureResolverForAsset():
configurePath = args.configureAssetPath or args.inputPath configurePath = args.configureAssetPath or args.inputPath
resolver.ConfigureResolverForAsset(configurePath) resolver.ConfigureResolverForAsset(configurePath)
else: return resolver.CreateDefaultContextForAsset(configurePath)
if args.createContextForAsset:
return resolver.CreateDefaultContextForAsset(
args.createContextForAsset)
elif args.createContextFromString:
configStrs = []
for s in args.createContextFromString:
try:
uriScheme, config = s.split(":", 1)
configStrs.append((uriScheme, config))
except ValueError:
configStrs.append(("", s))
return resolver.CreateContextFromStrings(configStrs)
return resolver.CreateDefaultContextForAsset(args.inputPath)
def _AnchorRelativePath(args, resolver): def _AnchorRelativePath(args, resolver):
if args.anchorPath: if args.anchorPath and resolver.IsRelativePath(args.inputPath):
if _HasCreateIdentifier():
return resolver.CreateIdentifier(
args.inputPath, Ar.ResolvedPath(args.anchorPath))
elif resolver.IsRelativePath(args.inputPath):
return resolver.AnchorRelativePath(args.anchorPath, args.inputPath) return resolver.AnchorRelativePath(args.anchorPath, args.inputPath)
return args.inputPath return args.inputPath
@@ -77,42 +50,19 @@ def main():
parser.add_argument('inputPath', parser.add_argument('inputPath',
help="An asset path to be resolved by the USD Asset Resolver.") help="An asset path to be resolved by the USD Asset Resolver.")
if _HasConfigureResolverForAsset():
parser.add_argument( parser.add_argument(
'--configureAssetPath', '--configureAssetPath',
help="Run ConfigureResolverForAsset on the given asset path.") help="Run ConfigureResolverForAsset on the given asset path.")
else:
subparser = parser.add_mutually_exclusive_group()
subparser.add_argument(
'--createContextForAsset',
help=("Run CreateDefaultContextForAsset with the given asset path "
"to create the context used for resolution."))
subparser.add_argument(
'--createContextFromString', action='append',
help=("Run CreateContextFromString with the given string to create "
"the context used for resolution. This accepts strings like "
"[<URI Scheme>:]<Configuration String> and may be specified "
"multiple times.\n\n"
"ex: usdresolve --createContextFromString 'config_primary' "
"--createContextFromString 'my_uri_scheme:config_uri'"))
if _HasCreateIdentifier():
parser.add_argument(
'--anchorPath',
help=("Run CreateIdentifier with the input path and this anchor "
"asset path and resolve the result.\n\n"
"ex: usdresolve --anchorPath /asset/asset.usd sublayer.usd"))
else:
parser.add_argument( parser.add_argument(
'--anchorPath', '--anchorPath',
help="Run AnchorRelativePath on the given asset path.") help="Run AnchorRelativePath on the given asset path.")
args = parser.parse_args() args = parser.parse_args()
exitCode = 0 exitCode = 0
from pxr import Ar, Usd
resolver = Ar.GetResolver() resolver = Ar.GetResolver()
try: try:
+1 -1
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2016 Pixar # Copyright 2016 Pixar
# #
+1 -1
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2016 Pixar # Copyright 2016 Pixar
# #
+1 -2
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2018 Pixar # Copyright 2018 Pixar
# #
@@ -288,7 +288,6 @@ Special metadata "kind" and "active" are always shown if authored unless --simpl
resolver = Ar.GetResolver() resolver = Ar.GetResolver()
try: try:
if hasattr(Ar.Resolver, "ConfigureResolverForAsset"):
resolver.ConfigureResolverForAsset(args.inputPath) resolver.ConfigureResolverForAsset(args.inputPath)
resolverContext = resolver.CreateDefaultContextForAsset(args.inputPath) resolverContext = resolver.CreateDefaultContextForAsset(args.inputPath)
with Ar.ResolverContextBinder(resolverContext): with Ar.ResolverContextBinder(resolverContext):
+1 -1
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2016 Pixar # Copyright 2016 Pixar
# #
+2 -9
View File
@@ -1,4 +1,4 @@
#!C:/Users/sebastien/AppData/Local/Programs/Python/Python39/python.exe #!C:/Users/sebastien/AppData/Local/Programs/Python/Python37/python.exe
# #
# Copyright 2018 Pixar # Copyright 2018 Pixar
# #
@@ -54,15 +54,8 @@ def _CheckCompliance(rootLayer, arkit=False):
checker.CheckCompliance(rootLayer) checker.CheckCompliance(rootLayer)
errors = checker.GetErrors() errors = checker.GetErrors()
failedChecks = checker.GetFailedChecks() failedChecks = checker.GetFailedChecks()
warnings = checker.GetWarnings()
for msg in errors + failedChecks: for msg in errors + failedChecks:
_Err(msg) _Err(msg)
if len(warnings) > 0:
_Err("*********************************************\n"
"Possible correctness problems to investigate:\n"
"*********************************************\n")
for msg in warnings:
_Err(msg)
return len(errors) == 0 and len(failedChecks) == 0 return len(errors) == 0 and len(failedChecks) == 0
def _CreateUsdzPackage(usdzFile, filesToAdd, recurse, checkCompliance, verbose): def _CreateUsdzPackage(usdzFile, filesToAdd, recurse, checkCompliance, verbose):
@@ -233,7 +226,7 @@ def main():
else: else:
if args.checkCompliance: if args.checkCompliance:
parser.error("--checkCompliance should only be specified when " parser.error("--checkCompliance should only be specified when "
"creating a usdz package. Please use 'usdchecker' to check " "creatinga usdz package. Please use 'usdchecker' to check "
"compliance of an existing .usdz file.") "compliance of an existing .usdz file.")
BIN
View File
Binary file not shown.
+135 -145
View File
@@ -8,462 +8,452 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "arch" for configuration "Release" # Import target "arch" for configuration "Release"
set_property(TARGET arch APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET arch APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(arch PROPERTIES set_target_properties(arch PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_arch.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/arch.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_arch.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/arch.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS arch ) list(APPEND _IMPORT_CHECK_TARGETS arch )
list(APPEND _IMPORT_CHECK_FILES_FOR_arch "${_IMPORT_PREFIX}/lib/usd_arch.lib" "${_IMPORT_PREFIX}/lib/usd_arch.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_arch "${_IMPORT_PREFIX}/lib/arch.lib" "${_IMPORT_PREFIX}/lib/arch.dll" )
# Import target "tf" for configuration "Release" # Import target "tf" for configuration "Release"
set_property(TARGET tf APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET tf APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(tf PROPERTIES set_target_properties(tf PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_tf.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/tf.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_tf.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/tf.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS tf ) list(APPEND _IMPORT_CHECK_TARGETS tf )
list(APPEND _IMPORT_CHECK_FILES_FOR_tf "${_IMPORT_PREFIX}/lib/usd_tf.lib" "${_IMPORT_PREFIX}/lib/usd_tf.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_tf "${_IMPORT_PREFIX}/lib/tf.lib" "${_IMPORT_PREFIX}/lib/tf.dll" )
# Import target "gf" for configuration "Release" # Import target "gf" for configuration "Release"
set_property(TARGET gf APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET gf APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(gf PROPERTIES set_target_properties(gf PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_gf.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/gf.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_gf.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/gf.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS gf ) list(APPEND _IMPORT_CHECK_TARGETS gf )
list(APPEND _IMPORT_CHECK_FILES_FOR_gf "${_IMPORT_PREFIX}/lib/usd_gf.lib" "${_IMPORT_PREFIX}/lib/usd_gf.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_gf "${_IMPORT_PREFIX}/lib/gf.lib" "${_IMPORT_PREFIX}/lib/gf.dll" )
# Import target "js" for configuration "Release" # Import target "js" for configuration "Release"
set_property(TARGET js APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET js APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(js PROPERTIES set_target_properties(js PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_js.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/js.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_js.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/js.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS js ) list(APPEND _IMPORT_CHECK_TARGETS js )
list(APPEND _IMPORT_CHECK_FILES_FOR_js "${_IMPORT_PREFIX}/lib/usd_js.lib" "${_IMPORT_PREFIX}/lib/usd_js.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_js "${_IMPORT_PREFIX}/lib/js.lib" "${_IMPORT_PREFIX}/lib/js.dll" )
# Import target "trace" for configuration "Release" # Import target "trace" for configuration "Release"
set_property(TARGET trace APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET trace APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(trace PROPERTIES set_target_properties(trace PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_trace.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/trace.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_trace.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/trace.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS trace ) list(APPEND _IMPORT_CHECK_TARGETS trace )
list(APPEND _IMPORT_CHECK_FILES_FOR_trace "${_IMPORT_PREFIX}/lib/usd_trace.lib" "${_IMPORT_PREFIX}/lib/usd_trace.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_trace "${_IMPORT_PREFIX}/lib/trace.lib" "${_IMPORT_PREFIX}/lib/trace.dll" )
# Import target "work" for configuration "Release" # Import target "work" for configuration "Release"
set_property(TARGET work APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET work APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(work PROPERTIES set_target_properties(work PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_work.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/work.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_work.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/work.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS work ) list(APPEND _IMPORT_CHECK_TARGETS work )
list(APPEND _IMPORT_CHECK_FILES_FOR_work "${_IMPORT_PREFIX}/lib/usd_work.lib" "${_IMPORT_PREFIX}/lib/usd_work.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_work "${_IMPORT_PREFIX}/lib/work.lib" "${_IMPORT_PREFIX}/lib/work.dll" )
# Import target "plug" for configuration "Release" # Import target "plug" for configuration "Release"
set_property(TARGET plug APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET plug APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(plug PROPERTIES set_target_properties(plug PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_plug.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/plug.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_plug.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/plug.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS plug ) list(APPEND _IMPORT_CHECK_TARGETS plug )
list(APPEND _IMPORT_CHECK_FILES_FOR_plug "${_IMPORT_PREFIX}/lib/usd_plug.lib" "${_IMPORT_PREFIX}/lib/usd_plug.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_plug "${_IMPORT_PREFIX}/lib/plug.lib" "${_IMPORT_PREFIX}/lib/plug.dll" )
# Import target "vt" for configuration "Release" # Import target "vt" for configuration "Release"
set_property(TARGET vt APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET vt APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(vt PROPERTIES set_target_properties(vt PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_vt.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/vt.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_vt.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/vt.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS vt ) list(APPEND _IMPORT_CHECK_TARGETS vt )
list(APPEND _IMPORT_CHECK_FILES_FOR_vt "${_IMPORT_PREFIX}/lib/usd_vt.lib" "${_IMPORT_PREFIX}/lib/usd_vt.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_vt "${_IMPORT_PREFIX}/lib/vt.lib" "${_IMPORT_PREFIX}/lib/vt.dll" )
# Import target "ar" for configuration "Release" # Import target "ar" for configuration "Release"
set_property(TARGET ar APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET ar APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(ar PROPERTIES set_target_properties(ar PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_ar.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/ar.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_ar.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/ar.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS ar ) list(APPEND _IMPORT_CHECK_TARGETS ar )
list(APPEND _IMPORT_CHECK_FILES_FOR_ar "${_IMPORT_PREFIX}/lib/usd_ar.lib" "${_IMPORT_PREFIX}/lib/usd_ar.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_ar "${_IMPORT_PREFIX}/lib/ar.lib" "${_IMPORT_PREFIX}/lib/ar.dll" )
# Import target "kind" for configuration "Release" # Import target "kind" for configuration "Release"
set_property(TARGET kind APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET kind APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(kind PROPERTIES set_target_properties(kind PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_kind.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/kind.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_kind.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/kind.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS kind ) list(APPEND _IMPORT_CHECK_TARGETS kind )
list(APPEND _IMPORT_CHECK_FILES_FOR_kind "${_IMPORT_PREFIX}/lib/usd_kind.lib" "${_IMPORT_PREFIX}/lib/usd_kind.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_kind "${_IMPORT_PREFIX}/lib/kind.lib" "${_IMPORT_PREFIX}/lib/kind.dll" )
# Import target "sdf" for configuration "Release" # Import target "sdf" for configuration "Release"
set_property(TARGET sdf APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET sdf APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(sdf PROPERTIES set_target_properties(sdf PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_sdf.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/sdf.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_sdf.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/sdf.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS sdf ) list(APPEND _IMPORT_CHECK_TARGETS sdf )
list(APPEND _IMPORT_CHECK_FILES_FOR_sdf "${_IMPORT_PREFIX}/lib/usd_sdf.lib" "${_IMPORT_PREFIX}/lib/usd_sdf.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_sdf "${_IMPORT_PREFIX}/lib/sdf.lib" "${_IMPORT_PREFIX}/lib/sdf.dll" )
# Import target "ndr" for configuration "Release" # Import target "ndr" for configuration "Release"
set_property(TARGET ndr APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET ndr APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(ndr PROPERTIES set_target_properties(ndr PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_ndr.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/ndr.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_ndr.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/ndr.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS ndr ) list(APPEND _IMPORT_CHECK_TARGETS ndr )
list(APPEND _IMPORT_CHECK_FILES_FOR_ndr "${_IMPORT_PREFIX}/lib/usd_ndr.lib" "${_IMPORT_PREFIX}/lib/usd_ndr.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_ndr "${_IMPORT_PREFIX}/lib/ndr.lib" "${_IMPORT_PREFIX}/lib/ndr.dll" )
# Import target "sdr" for configuration "Release" # Import target "sdr" for configuration "Release"
set_property(TARGET sdr APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET sdr APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(sdr PROPERTIES set_target_properties(sdr PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_sdr.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/sdr.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_sdr.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/sdr.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS sdr ) list(APPEND _IMPORT_CHECK_TARGETS sdr )
list(APPEND _IMPORT_CHECK_FILES_FOR_sdr "${_IMPORT_PREFIX}/lib/usd_sdr.lib" "${_IMPORT_PREFIX}/lib/usd_sdr.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_sdr "${_IMPORT_PREFIX}/lib/sdr.lib" "${_IMPORT_PREFIX}/lib/sdr.dll" )
# Import target "pcp" for configuration "Release" # Import target "pcp" for configuration "Release"
set_property(TARGET pcp APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET pcp APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(pcp PROPERTIES set_target_properties(pcp PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_pcp.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/pcp.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_pcp.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/pcp.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS pcp ) list(APPEND _IMPORT_CHECK_TARGETS pcp )
list(APPEND _IMPORT_CHECK_FILES_FOR_pcp "${_IMPORT_PREFIX}/lib/usd_pcp.lib" "${_IMPORT_PREFIX}/lib/usd_pcp.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_pcp "${_IMPORT_PREFIX}/lib/pcp.lib" "${_IMPORT_PREFIX}/lib/pcp.dll" )
# Import target "usd" for configuration "Release" # Import target "usd" for configuration "Release"
set_property(TARGET usd APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usd APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usd PROPERTIES set_target_properties(usd PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usd.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usd.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usd ) list(APPEND _IMPORT_CHECK_TARGETS usd )
list(APPEND _IMPORT_CHECK_FILES_FOR_usd "${_IMPORT_PREFIX}/lib/usd_usd.lib" "${_IMPORT_PREFIX}/lib/usd_usd.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usd "${_IMPORT_PREFIX}/lib/usd.lib" "${_IMPORT_PREFIX}/lib/usd.dll" )
# Import target "usdGeom" for configuration "Release" # Import target "usdGeom" for configuration "Release"
set_property(TARGET usdGeom APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdGeom APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdGeom PROPERTIES set_target_properties(usdGeom PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdGeom.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdGeom.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdGeom.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdGeom.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdGeom ) list(APPEND _IMPORT_CHECK_TARGETS usdGeom )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdGeom "${_IMPORT_PREFIX}/lib/usd_usdGeom.lib" "${_IMPORT_PREFIX}/lib/usd_usdGeom.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdGeom "${_IMPORT_PREFIX}/lib/usdGeom.lib" "${_IMPORT_PREFIX}/lib/usdGeom.dll" )
# Import target "usdVol" for configuration "Release" # Import target "usdVol" for configuration "Release"
set_property(TARGET usdVol APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdVol APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdVol PROPERTIES set_target_properties(usdVol PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdVol.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdVol.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdVol.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdVol.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdVol ) list(APPEND _IMPORT_CHECK_TARGETS usdVol )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdVol "${_IMPORT_PREFIX}/lib/usd_usdVol.lib" "${_IMPORT_PREFIX}/lib/usd_usdVol.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdVol "${_IMPORT_PREFIX}/lib/usdVol.lib" "${_IMPORT_PREFIX}/lib/usdVol.dll" )
# Import target "usdMedia" for configuration "Release" # Import target "usdMedia" for configuration "Release"
set_property(TARGET usdMedia APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdMedia APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdMedia PROPERTIES set_target_properties(usdMedia PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdMedia.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdMedia.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdMedia.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdMedia.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdMedia ) list(APPEND _IMPORT_CHECK_TARGETS usdMedia )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdMedia "${_IMPORT_PREFIX}/lib/usd_usdMedia.lib" "${_IMPORT_PREFIX}/lib/usd_usdMedia.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdMedia "${_IMPORT_PREFIX}/lib/usdMedia.lib" "${_IMPORT_PREFIX}/lib/usdMedia.dll" )
# Import target "usdShade" for configuration "Release" # Import target "usdShade" for configuration "Release"
set_property(TARGET usdShade APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdShade APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdShade PROPERTIES set_target_properties(usdShade PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdShade.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdShade.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdShade.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdShade.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdShade ) list(APPEND _IMPORT_CHECK_TARGETS usdShade )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdShade "${_IMPORT_PREFIX}/lib/usd_usdShade.lib" "${_IMPORT_PREFIX}/lib/usd_usdShade.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdShade "${_IMPORT_PREFIX}/lib/usdShade.lib" "${_IMPORT_PREFIX}/lib/usdShade.dll" )
# Import target "usdLux" for configuration "Release" # Import target "usdLux" for configuration "Release"
set_property(TARGET usdLux APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdLux APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdLux PROPERTIES set_target_properties(usdLux PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdLux.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdLux.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdLux.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdLux.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdLux ) list(APPEND _IMPORT_CHECK_TARGETS usdLux )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdLux "${_IMPORT_PREFIX}/lib/usd_usdLux.lib" "${_IMPORT_PREFIX}/lib/usd_usdLux.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdLux "${_IMPORT_PREFIX}/lib/usdLux.lib" "${_IMPORT_PREFIX}/lib/usdLux.dll" )
# Import target "usdRender" for configuration "Release" # Import target "usdRender" for configuration "Release"
set_property(TARGET usdRender APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdRender APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdRender PROPERTIES set_target_properties(usdRender PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdRender.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdRender.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdRender.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdRender.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdRender ) list(APPEND _IMPORT_CHECK_TARGETS usdRender )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdRender "${_IMPORT_PREFIX}/lib/usd_usdRender.lib" "${_IMPORT_PREFIX}/lib/usd_usdRender.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdRender "${_IMPORT_PREFIX}/lib/usdRender.lib" "${_IMPORT_PREFIX}/lib/usdRender.dll" )
# Import target "usdHydra" for configuration "Release" # Import target "usdHydra" for configuration "Release"
set_property(TARGET usdHydra APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdHydra APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdHydra PROPERTIES set_target_properties(usdHydra PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdHydra.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdHydra.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdHydra.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdHydra.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdHydra ) list(APPEND _IMPORT_CHECK_TARGETS usdHydra )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdHydra "${_IMPORT_PREFIX}/lib/usd_usdHydra.lib" "${_IMPORT_PREFIX}/lib/usd_usdHydra.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdHydra "${_IMPORT_PREFIX}/lib/usdHydra.lib" "${_IMPORT_PREFIX}/lib/usdHydra.dll" )
# Import target "usdRi" for configuration "Release" # Import target "usdRi" for configuration "Release"
set_property(TARGET usdRi APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdRi APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdRi PROPERTIES set_target_properties(usdRi PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdRi.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdRi.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdRi.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdRi.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdRi ) list(APPEND _IMPORT_CHECK_TARGETS usdRi )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdRi "${_IMPORT_PREFIX}/lib/usd_usdRi.lib" "${_IMPORT_PREFIX}/lib/usd_usdRi.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdRi "${_IMPORT_PREFIX}/lib/usdRi.lib" "${_IMPORT_PREFIX}/lib/usdRi.dll" )
# Import target "usdSkel" for configuration "Release" # Import target "usdSkel" for configuration "Release"
set_property(TARGET usdSkel APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdSkel APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdSkel PROPERTIES set_target_properties(usdSkel PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdSkel.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdSkel.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdSkel.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdSkel.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdSkel ) list(APPEND _IMPORT_CHECK_TARGETS usdSkel )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdSkel "${_IMPORT_PREFIX}/lib/usd_usdSkel.lib" "${_IMPORT_PREFIX}/lib/usd_usdSkel.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdSkel "${_IMPORT_PREFIX}/lib/usdSkel.lib" "${_IMPORT_PREFIX}/lib/usdSkel.dll" )
# Import target "usdUI" for configuration "Release" # Import target "usdUI" for configuration "Release"
set_property(TARGET usdUI APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdUI APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdUI PROPERTIES set_target_properties(usdUI PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdUI.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdUI.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdUI.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdUI.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdUI ) list(APPEND _IMPORT_CHECK_TARGETS usdUI )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdUI "${_IMPORT_PREFIX}/lib/usd_usdUI.lib" "${_IMPORT_PREFIX}/lib/usd_usdUI.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdUI "${_IMPORT_PREFIX}/lib/usdUI.lib" "${_IMPORT_PREFIX}/lib/usdUI.dll" )
# Import target "usdUtils" for configuration "Release" # Import target "usdUtils" for configuration "Release"
set_property(TARGET usdUtils APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdUtils APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdUtils PROPERTIES set_target_properties(usdUtils PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdUtils.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdUtils.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdUtils.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdUtils.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdUtils ) list(APPEND _IMPORT_CHECK_TARGETS usdUtils )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdUtils "${_IMPORT_PREFIX}/lib/usd_usdUtils.lib" "${_IMPORT_PREFIX}/lib/usd_usdUtils.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdUtils "${_IMPORT_PREFIX}/lib/usdUtils.lib" "${_IMPORT_PREFIX}/lib/usdUtils.dll" )
# Import target "usdPhysics" for configuration "Release"
set_property(TARGET usdPhysics APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdPhysics PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdPhysics.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdPhysics.dll"
)
list(APPEND _IMPORT_CHECK_TARGETS usdPhysics )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdPhysics "${_IMPORT_PREFIX}/lib/usd_usdPhysics.lib" "${_IMPORT_PREFIX}/lib/usd_usdPhysics.dll" )
# Import target "garch" for configuration "Release" # Import target "garch" for configuration "Release"
set_property(TARGET garch APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET garch APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(garch PROPERTIES set_target_properties(garch PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_garch.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/garch.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_garch.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/garch.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS garch ) list(APPEND _IMPORT_CHECK_TARGETS garch )
list(APPEND _IMPORT_CHECK_FILES_FOR_garch "${_IMPORT_PREFIX}/lib/usd_garch.lib" "${_IMPORT_PREFIX}/lib/usd_garch.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_garch "${_IMPORT_PREFIX}/lib/garch.lib" "${_IMPORT_PREFIX}/lib/garch.dll" )
# Import target "hf" for configuration "Release" # Import target "hf" for configuration "Release"
set_property(TARGET hf APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET hf APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(hf PROPERTIES set_target_properties(hf PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_hf.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/hf.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_hf.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/hf.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS hf ) list(APPEND _IMPORT_CHECK_TARGETS hf )
list(APPEND _IMPORT_CHECK_FILES_FOR_hf "${_IMPORT_PREFIX}/lib/usd_hf.lib" "${_IMPORT_PREFIX}/lib/usd_hf.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_hf "${_IMPORT_PREFIX}/lib/hf.lib" "${_IMPORT_PREFIX}/lib/hf.dll" )
# Import target "hio" for configuration "Release" # Import target "hio" for configuration "Release"
set_property(TARGET hio APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET hio APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(hio PROPERTIES set_target_properties(hio PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_hio.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/hio.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_hio.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/hio.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS hio ) list(APPEND _IMPORT_CHECK_TARGETS hio )
list(APPEND _IMPORT_CHECK_FILES_FOR_hio "${_IMPORT_PREFIX}/lib/usd_hio.lib" "${_IMPORT_PREFIX}/lib/usd_hio.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_hio "${_IMPORT_PREFIX}/lib/hio.lib" "${_IMPORT_PREFIX}/lib/hio.dll" )
# Import target "cameraUtil" for configuration "Release" # Import target "cameraUtil" for configuration "Release"
set_property(TARGET cameraUtil APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET cameraUtil APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(cameraUtil PROPERTIES set_target_properties(cameraUtil PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_cameraUtil.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/cameraUtil.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_cameraUtil.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/cameraUtil.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS cameraUtil ) list(APPEND _IMPORT_CHECK_TARGETS cameraUtil )
list(APPEND _IMPORT_CHECK_FILES_FOR_cameraUtil "${_IMPORT_PREFIX}/lib/usd_cameraUtil.lib" "${_IMPORT_PREFIX}/lib/usd_cameraUtil.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_cameraUtil "${_IMPORT_PREFIX}/lib/cameraUtil.lib" "${_IMPORT_PREFIX}/lib/cameraUtil.dll" )
# Import target "pxOsd" for configuration "Release" # Import target "pxOsd" for configuration "Release"
set_property(TARGET pxOsd APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET pxOsd APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(pxOsd PROPERTIES set_target_properties(pxOsd PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_pxOsd.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/pxOsd.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_pxOsd.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/pxOsd.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS pxOsd ) list(APPEND _IMPORT_CHECK_TARGETS pxOsd )
list(APPEND _IMPORT_CHECK_FILES_FOR_pxOsd "${_IMPORT_PREFIX}/lib/usd_pxOsd.lib" "${_IMPORT_PREFIX}/lib/usd_pxOsd.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_pxOsd "${_IMPORT_PREFIX}/lib/pxOsd.lib" "${_IMPORT_PREFIX}/lib/pxOsd.dll" )
# Import target "glf" for configuration "Release" # Import target "glf" for configuration "Release"
set_property(TARGET glf APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET glf APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(glf PROPERTIES set_target_properties(glf PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_glf.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/glf.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_glf.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/glf.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS glf ) list(APPEND _IMPORT_CHECK_TARGETS glf )
list(APPEND _IMPORT_CHECK_FILES_FOR_glf "${_IMPORT_PREFIX}/lib/usd_glf.lib" "${_IMPORT_PREFIX}/lib/usd_glf.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_glf "${_IMPORT_PREFIX}/lib/glf.lib" "${_IMPORT_PREFIX}/lib/glf.dll" )
# Import target "hgi" for configuration "Release" # Import target "hgi" for configuration "Release"
set_property(TARGET hgi APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET hgi APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(hgi PROPERTIES set_target_properties(hgi PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_hgi.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/hgi.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_hgi.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/hgi.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS hgi ) list(APPEND _IMPORT_CHECK_TARGETS hgi )
list(APPEND _IMPORT_CHECK_FILES_FOR_hgi "${_IMPORT_PREFIX}/lib/usd_hgi.lib" "${_IMPORT_PREFIX}/lib/usd_hgi.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_hgi "${_IMPORT_PREFIX}/lib/hgi.lib" "${_IMPORT_PREFIX}/lib/hgi.dll" )
# Import target "hgiGL" for configuration "Release" # Import target "hgiGL" for configuration "Release"
set_property(TARGET hgiGL APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET hgiGL APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(hgiGL PROPERTIES set_target_properties(hgiGL PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_hgiGL.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/hgiGL.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_hgiGL.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/hgiGL.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS hgiGL ) list(APPEND _IMPORT_CHECK_TARGETS hgiGL )
list(APPEND _IMPORT_CHECK_FILES_FOR_hgiGL "${_IMPORT_PREFIX}/lib/usd_hgiGL.lib" "${_IMPORT_PREFIX}/lib/usd_hgiGL.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_hgiGL "${_IMPORT_PREFIX}/lib/hgiGL.lib" "${_IMPORT_PREFIX}/lib/hgiGL.dll" )
# Import target "hgiInterop" for configuration "Release" # Import target "hgiInterop" for configuration "Release"
set_property(TARGET hgiInterop APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET hgiInterop APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(hgiInterop PROPERTIES set_target_properties(hgiInterop PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_hgiInterop.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/hgiInterop.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_hgiInterop.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/hgiInterop.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS hgiInterop ) list(APPEND _IMPORT_CHECK_TARGETS hgiInterop )
list(APPEND _IMPORT_CHECK_FILES_FOR_hgiInterop "${_IMPORT_PREFIX}/lib/usd_hgiInterop.lib" "${_IMPORT_PREFIX}/lib/usd_hgiInterop.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_hgiInterop "${_IMPORT_PREFIX}/lib/hgiInterop.lib" "${_IMPORT_PREFIX}/lib/hgiInterop.dll" )
# Import target "hd" for configuration "Release" # Import target "hd" for configuration "Release"
set_property(TARGET hd APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET hd APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(hd PROPERTIES set_target_properties(hd PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_hd.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/hd.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_hd.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/hd.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS hd ) list(APPEND _IMPORT_CHECK_TARGETS hd )
list(APPEND _IMPORT_CHECK_FILES_FOR_hd "${_IMPORT_PREFIX}/lib/usd_hd.lib" "${_IMPORT_PREFIX}/lib/usd_hd.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_hd "${_IMPORT_PREFIX}/lib/hd.lib" "${_IMPORT_PREFIX}/lib/hd.dll" )
# Import target "hdSt" for configuration "Release" # Import target "hdSt" for configuration "Release"
set_property(TARGET hdSt APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET hdSt APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(hdSt PROPERTIES set_target_properties(hdSt PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_hdSt.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/hdSt.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_hdSt.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/hdSt.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS hdSt ) list(APPEND _IMPORT_CHECK_TARGETS hdSt )
list(APPEND _IMPORT_CHECK_FILES_FOR_hdSt "${_IMPORT_PREFIX}/lib/usd_hdSt.lib" "${_IMPORT_PREFIX}/lib/usd_hdSt.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_hdSt "${_IMPORT_PREFIX}/lib/hdSt.lib" "${_IMPORT_PREFIX}/lib/hdSt.dll" )
# Import target "hdx" for configuration "Release" # Import target "hdx" for configuration "Release"
set_property(TARGET hdx APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET hdx APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(hdx PROPERTIES set_target_properties(hdx PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_hdx.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/hdx.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_hdx.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/hdx.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS hdx ) list(APPEND _IMPORT_CHECK_TARGETS hdx )
list(APPEND _IMPORT_CHECK_FILES_FOR_hdx "${_IMPORT_PREFIX}/lib/usd_hdx.lib" "${_IMPORT_PREFIX}/lib/usd_hdx.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_hdx "${_IMPORT_PREFIX}/lib/hdx.lib" "${_IMPORT_PREFIX}/lib/hdx.dll" )
# Import target "usdImaging" for configuration "Release" # Import target "usdImaging" for configuration "Release"
set_property(TARGET usdImaging APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdImaging APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdImaging PROPERTIES set_target_properties(usdImaging PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdImaging.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdImaging.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdImaging.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdImaging.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdImaging ) list(APPEND _IMPORT_CHECK_TARGETS usdImaging )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdImaging "${_IMPORT_PREFIX}/lib/usd_usdImaging.lib" "${_IMPORT_PREFIX}/lib/usd_usdImaging.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdImaging "${_IMPORT_PREFIX}/lib/usdImaging.lib" "${_IMPORT_PREFIX}/lib/usdImaging.dll" )
# Import target "usdImagingGL" for configuration "Release" # Import target "usdImagingGL" for configuration "Release"
set_property(TARGET usdImagingGL APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdImagingGL APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdImagingGL PROPERTIES set_target_properties(usdImagingGL PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdImagingGL.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdImagingGL.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdImagingGL.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdImagingGL.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdImagingGL ) list(APPEND _IMPORT_CHECK_TARGETS usdImagingGL )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdImagingGL "${_IMPORT_PREFIX}/lib/usd_usdImagingGL.lib" "${_IMPORT_PREFIX}/lib/usd_usdImagingGL.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdImagingGL "${_IMPORT_PREFIX}/lib/usdImagingGL.lib" "${_IMPORT_PREFIX}/lib/usdImagingGL.dll" )
# Import target "usdRiImaging" for configuration "Release" # Import target "usdRiImaging" for configuration "Release"
set_property(TARGET usdRiImaging APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdRiImaging APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdRiImaging PROPERTIES set_target_properties(usdRiImaging PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdRiImaging.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdRiImaging.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdRiImaging.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdRiImaging.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdRiImaging ) list(APPEND _IMPORT_CHECK_TARGETS usdRiImaging )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdRiImaging "${_IMPORT_PREFIX}/lib/usd_usdRiImaging.lib" "${_IMPORT_PREFIX}/lib/usd_usdRiImaging.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdRiImaging "${_IMPORT_PREFIX}/lib/usdRiImaging.lib" "${_IMPORT_PREFIX}/lib/usdRiImaging.dll" )
# Import target "usdSkelImaging" for configuration "Release" # Import target "usdSkelImaging" for configuration "Release"
set_property(TARGET usdSkelImaging APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdSkelImaging APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdSkelImaging PROPERTIES set_target_properties(usdSkelImaging PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdSkelImaging.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdSkelImaging.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdSkelImaging.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdSkelImaging.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdSkelImaging ) list(APPEND _IMPORT_CHECK_TARGETS usdSkelImaging )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdSkelImaging "${_IMPORT_PREFIX}/lib/usd_usdSkelImaging.lib" "${_IMPORT_PREFIX}/lib/usd_usdSkelImaging.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdSkelImaging "${_IMPORT_PREFIX}/lib/usdSkelImaging.lib" "${_IMPORT_PREFIX}/lib/usdSkelImaging.dll" )
# Import target "usdVolImaging" for configuration "Release" # Import target "usdVolImaging" for configuration "Release"
set_property(TARGET usdVolImaging APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdVolImaging APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdVolImaging PROPERTIES set_target_properties(usdVolImaging PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdVolImaging.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdVolImaging.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdVolImaging.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdVolImaging.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdVolImaging ) list(APPEND _IMPORT_CHECK_TARGETS usdVolImaging )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdVolImaging "${_IMPORT_PREFIX}/lib/usd_usdVolImaging.lib" "${_IMPORT_PREFIX}/lib/usd_usdVolImaging.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdVolImaging "${_IMPORT_PREFIX}/lib/usdVolImaging.lib" "${_IMPORT_PREFIX}/lib/usdVolImaging.dll" )
# Import target "usdAppUtils" for configuration "Release" # Import target "usdAppUtils" for configuration "Release"
set_property(TARGET usdAppUtils APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdAppUtils APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdAppUtils PROPERTIES set_target_properties(usdAppUtils PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdAppUtils.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdAppUtils.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdAppUtils.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdAppUtils.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdAppUtils ) list(APPEND _IMPORT_CHECK_TARGETS usdAppUtils )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdAppUtils "${_IMPORT_PREFIX}/lib/usd_usdAppUtils.lib" "${_IMPORT_PREFIX}/lib/usd_usdAppUtils.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdAppUtils "${_IMPORT_PREFIX}/lib/usdAppUtils.lib" "${_IMPORT_PREFIX}/lib/usdAppUtils.dll" )
# Import target "usdviewq" for configuration "Release" # Import target "usdviewq" for configuration "Release"
set_property(TARGET usdviewq APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_property(TARGET usdviewq APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(usdviewq PROPERTIES set_target_properties(usdviewq PROPERTIES
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdviewq.lib" IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/usdviewq.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usd_usdviewq.dll" IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/usdviewq.dll"
) )
list(APPEND _IMPORT_CHECK_TARGETS usdviewq ) list(APPEND _IMPORT_CHECK_TARGETS usdviewq )
list(APPEND _IMPORT_CHECK_FILES_FOR_usdviewq "${_IMPORT_PREFIX}/lib/usd_usdviewq.lib" "${_IMPORT_PREFIX}/lib/usd_usdviewq.dll" ) list(APPEND _IMPORT_CHECK_FILES_FOR_usdviewq "${_IMPORT_PREFIX}/lib/usdviewq.lib" "${_IMPORT_PREFIX}/lib/usdviewq.dll" )
# Commands beyond this point should not need to know the version. # Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION) set(CMAKE_IMPORT_FILE_VERSION)
+24 -34
View File
@@ -16,7 +16,7 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
set(_targetsDefined) set(_targetsDefined)
set(_targetsNotDefined) set(_targetsNotDefined)
set(_expectedTargets) set(_expectedTargets)
foreach(_expectedTarget arch tf gf js trace work plug vt ar kind sdf ndr sdr pcp usd usdGeom usdVol usdMedia usdShade usdLux usdRender usdHydra usdRi usdSkel usdUI usdUtils usdPhysics garch hf hio cameraUtil pxOsd glf hgi hgiGL hgiInterop hd hdSt hdx usdImaging usdImagingGL usdRiImaging usdSkelImaging usdVolImaging usdAppUtils usdviewq) foreach(_expectedTarget arch tf gf js trace work plug vt ar kind sdf ndr sdr pcp usd usdGeom usdVol usdMedia usdShade usdLux usdRender usdHydra usdRi usdSkel usdUI usdUtils garch hf hio cameraUtil pxOsd glf hgi hgiGL hgiInterop hd hdSt hdx usdImaging usdImagingGL usdRiImaging usdSkelImaging usdVolImaging usdAppUtils usdviewq)
list(APPEND _expectedTargets ${_expectedTarget}) list(APPEND _expectedTargets ${_expectedTarget})
if(NOT TARGET ${_expectedTarget}) if(NOT TARGET ${_expectedTarget})
list(APPEND _targetsNotDefined ${_expectedTarget}) list(APPEND _targetsNotDefined ${_expectedTarget})
@@ -62,9 +62,9 @@ add_library(tf SHARED IMPORTED)
set_target_properties(tf PROPERTIES set_target_properties(tf PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/Users/sebastien/AppData/Local/Programs/Python/Python39/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/Users/sebastien/AppData/Local/Programs/Python/Python37/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "arch;Shlwapi.lib;C:/Users/sebastien/AppData/Local/Programs/Python/Python39/libs/python39.lib;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib" INTERFACE_LINK_LIBRARIES "arch;Shlwapi.lib;C:/Users/sebastien/AppData/Local/Programs/Python/Python37/libs/python37.lib;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/Users/sebastien/AppData/Local/Programs/Python/Python39/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/Users/sebastien/AppData/Local/Programs/Python/Python37/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
) )
# Create imported target gf # Create imported target gf
@@ -92,7 +92,7 @@ add_library(trace SHARED IMPORTED)
set_target_properties(trace PROPERTIES set_target_properties(trace PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "arch;js;tf;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib" INTERFACE_LINK_LIBRARIES "arch;js;tf;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
) )
@@ -112,7 +112,7 @@ add_library(plug SHARED IMPORTED)
set_target_properties(plug PROPERTIES set_target_properties(plug PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "arch;tf;js;trace;work;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib" INTERFACE_LINK_LIBRARIES "arch;tf;js;trace;work;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
) )
@@ -122,7 +122,7 @@ add_library(vt SHARED IMPORTED)
set_target_properties(vt PROPERTIES set_target_properties(vt PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "arch;tf;gf;trace;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib" INTERFACE_LINK_LIBRARIES "arch;tf;gf;trace;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
) )
@@ -132,7 +132,7 @@ add_library(ar SHARED IMPORTED)
set_target_properties(ar PROPERTIES set_target_properties(ar PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70"
INTERFACE_LINK_LIBRARIES "arch;tf;plug;vt;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib" INTERFACE_LINK_LIBRARIES "arch;tf;plug;vt;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70"
) )
@@ -151,7 +151,7 @@ add_library(sdf SHARED IMPORTED)
set_target_properties(sdf PROPERTIES set_target_properties(sdf PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70"
INTERFACE_LINK_LIBRARIES "arch;tf;gf;trace;vt;work;ar;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib" INTERFACE_LINK_LIBRARIES "arch;tf;gf;trace;vt;work;ar;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70"
) )
@@ -161,7 +161,7 @@ add_library(ndr SHARED IMPORTED)
set_target_properties(ndr PROPERTIES set_target_properties(ndr PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70"
INTERFACE_LINK_LIBRARIES "tf;plug;vt;work;ar;sdf;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib" INTERFACE_LINK_LIBRARIES "tf;plug;vt;work;ar;sdf;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70"
) )
@@ -171,7 +171,7 @@ add_library(sdr SHARED IMPORTED)
set_target_properties(sdr PROPERTIES set_target_properties(sdr PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70"
INTERFACE_LINK_LIBRARIES "tf;vt;ar;ndr;sdf;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib" INTERFACE_LINK_LIBRARIES "tf;vt;ar;ndr;sdf;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70"
) )
@@ -181,7 +181,7 @@ add_library(pcp SHARED IMPORTED)
set_target_properties(pcp PROPERTIES set_target_properties(pcp PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "tf;trace;vt;sdf;work;ar;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib" INTERFACE_LINK_LIBRARIES "tf;trace;vt;sdf;work;ar;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
) )
@@ -191,7 +191,7 @@ add_library(usd SHARED IMPORTED)
set_target_properties(usd PROPERTIES set_target_properties(usd PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "arch;kind;pcp;sdf;ar;plug;tf;trace;vt;work;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib" INTERFACE_LINK_LIBRARIES "arch;kind;pcp;sdf;ar;plug;tf;trace;vt;work;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
) )
@@ -201,7 +201,7 @@ add_library(usdGeom SHARED IMPORTED)
set_target_properties(usdGeom PROPERTIES set_target_properties(usdGeom PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "js;tf;plug;vt;sdf;trace;usd;work;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib" INTERFACE_LINK_LIBRARIES "js;tf;plug;vt;sdf;trace;usd;work;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
) )
@@ -265,7 +265,7 @@ add_library(usdRi SHARED IMPORTED)
set_target_properties(usdRi PROPERTIES set_target_properties(usdRi PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70"
INTERFACE_LINK_LIBRARIES "tf;vt;sdf;usd;usdShade;usdGeom;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib" INTERFACE_LINK_LIBRARIES "tf;vt;sdf;usd;usdShade;usdGeom;usdLux;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70"
) )
@@ -275,7 +275,7 @@ add_library(usdSkel SHARED IMPORTED)
set_target_properties(usdSkel PROPERTIES set_target_properties(usdSkel PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "arch;gf;tf;trace;vt;work;sdf;usd;usdGeom;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib" INTERFACE_LINK_LIBRARIES "arch;gf;tf;trace;vt;work;sdf;usd;usdGeom;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
) )
@@ -294,20 +294,10 @@ add_library(usdUtils SHARED IMPORTED)
set_target_properties(usdUtils PROPERTIES set_target_properties(usdUtils PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70"
INTERFACE_LINK_LIBRARIES "arch;tf;gf;sdf;usd;usdGeom;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib" INTERFACE_LINK_LIBRARIES "arch;tf;gf;sdf;usd;usdGeom;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70"
) )
# Create imported target usdPhysics
add_library(usdPhysics SHARED IMPORTED)
set_target_properties(usdPhysics PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "js;tf;plug;vt;sdf;trace;usd;usdGeom;work;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;C:/dev/USD/lib/tbb.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70;C:/dev/USD/include"
)
# Create imported target garch # Create imported target garch
add_library(garch SHARED IMPORTED) add_library(garch SHARED IMPORTED)
@@ -352,7 +342,7 @@ add_library(pxOsd SHARED IMPORTED)
set_target_properties(pxOsd PROPERTIES set_target_properties(pxOsd PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "tf;gf;vt;C:/dev/USD/lib/osdCPU.lib;C:/dev/USD/lib/osdGPU.lib;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib" INTERFACE_LINK_LIBRARIES "tf;gf;vt;C:/dev/USD/lib/osdCPU.lib;C:/dev/USD/lib/osdGPU.lib;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include"
) )
@@ -362,7 +352,7 @@ add_library(glf SHARED IMPORTED)
set_target_properties(glf PROPERTIES set_target_properties(glf PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70"
INTERFACE_LINK_LIBRARIES "ar;arch;garch;gf;hf;hio;js;plug;tf;trace;sdf;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;opengl32" INTERFACE_LINK_LIBRARIES "ar;arch;garch;gf;hf;hio;js;plug;tf;trace;sdf;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib;opengl32"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70"
) )
@@ -437,9 +427,9 @@ add_library(usdImagingGL SHARED IMPORTED)
set_target_properties(usdImagingGL PROPERTIES set_target_properties(usdImagingGL PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/Users/sebastien/AppData/Local/Programs/Python/Python39/include;C:/Users/sebastien/AppData/Local/Programs/Python/Python39/include;C:/dev/USD/include" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/Users/sebastien/AppData/Local/Programs/Python/Python37/include;C:/Users/sebastien/AppData/Local/Programs/Python/Python37/include;C:/dev/USD/include"
INTERFACE_LINK_LIBRARIES "gf;tf;plug;trace;vt;work;hio;garch;glf;hd;hdx;pxOsd;sdf;sdr;usd;usdGeom;usdHydra;usdShade;usdImaging;ar;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib;C:/Users/sebastien/AppData/Local/Programs/Python/Python39/libs/python39.lib;C:/dev/USD/lib/tbb.lib" INTERFACE_LINK_LIBRARIES "gf;tf;plug;trace;vt;work;hio;garch;glf;hd;hdx;pxOsd;sdf;sdr;usd;usdGeom;usdHydra;usdShade;usdImaging;ar;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib;C:/Users/sebastien/AppData/Local/Programs/Python/Python37/libs/python37.lib;C:/dev/USD/lib/tbb.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/Users/sebastien/AppData/Local/Programs/Python/Python39/include;C:/Users/sebastien/AppData/Local/Programs/Python/Python39/include;C:/dev/USD/include" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/Users/sebastien/AppData/Local/Programs/Python/Python37/include;C:/Users/sebastien/AppData/Local/Programs/Python/Python37/include;C:/dev/USD/include"
) )
# Create imported target usdRiImaging # Create imported target usdRiImaging
@@ -476,7 +466,7 @@ add_library(usdAppUtils SHARED IMPORTED)
set_target_properties(usdAppUtils PROPERTIES set_target_properties(usdAppUtils PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70"
INTERFACE_LINK_LIBRARIES "garch;gf;hio;sdf;tf;usd;usdGeom;usdImagingGL;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib" INTERFACE_LINK_LIBRARIES "garch;gf;hio;sdf;tf;usd;usdGeom;usdImagingGL;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70"
) )
@@ -486,7 +476,7 @@ add_library(usdviewq SHARED IMPORTED)
set_target_properties(usdviewq PROPERTIES set_target_properties(usdviewq PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1" INTERFACE_COMPILE_DEFINITIONS "PXR_PYTHON_ENABLED=1"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;C:/dev/USD/include/boost-1_70"
INTERFACE_LINK_LIBRARIES "tf;usd;usdGeom;C:/dev/USD/lib/boost_python39-vc142-mt-x64-1_70.lib" INTERFACE_LINK_LIBRARIES "tf;usd;usdGeom;C:/dev/USD/lib/boost_python37-vc142-mt-x64-1_70.lib"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "C:/dev/USD/include/boost-1_70"
) )
-38
View File
@@ -51,8 +51,6 @@
#include <glob.h> #include <glob.h>
#elif defined(ARCH_OS_WINDOWS) #elif defined(ARCH_OS_WINDOWS)
#include <io.h> #include <io.h>
#include <windows.h>
#include <stringapiset.h>
#endif #endif
PXR_NAMESPACE_OPEN_SCOPE PXR_NAMESPACE_OPEN_SCOPE
@@ -423,42 +421,6 @@ ARCH_API
void ArchFileAdvise(FILE *file, int64_t offset, size_t count, void ArchFileAdvise(FILE *file, int64_t offset, size_t count,
ArchFileAdvice adv); ArchFileAdvice adv);
#if defined(ARCH_OS_WINDOWS)
/// Converts UTF-16 windows string to regular std::string - Windows-only
inline std::string ArchWindowsUtf16ToUtf8(const std::wstring &wstr)
{
if (wstr.empty()) return std::string();
// first call is only to get required size for string
int size = WideCharToMultiByte(
CP_UTF8, 0, wstr.data(), (int)wstr.size(), NULL, 0, NULL, NULL);
if (size == 0) return std::string();
std::string str(size, 0);
if (WideCharToMultiByte(CP_UTF8, 0, wstr.data(), (int)wstr.size(),
&str[0], size, NULL, NULL) == 0) {
return std::string();
}
return str;
}
/// Converts regular std::string to UTF-16 windows string - Windows-only
inline std::wstring ArchWindowsUtf8ToUtf16(const std::string &str)
{
if (str.empty()) return std::wstring();
// first call is only to get required size for wstring
int size = MultiByteToWideChar(
CP_UTF8, 0, str.data(), (int)str.size(), NULL, 0);
if (size == 0) return std::wstring();
std::wstring wstr(size, 0);
if(MultiByteToWideChar(
CP_UTF8, 0, str.data(), (int)str.size(), &wstr[0], size) == 0) {
return std::wstring();
}
return wstr;
}
#endif
///@} ///@}
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_CLOSE_SCOPE
-13
View File
@@ -54,9 +54,6 @@
#define ARCH_PRAGMA_WRITE_STRINGS \ #define ARCH_PRAGMA_WRITE_STRINGS \
_Pragma("GCC diagnostic ignored \"-Wwrite-strings\"") _Pragma("GCC diagnostic ignored \"-Wwrite-strings\"")
#define ARCH_PRAGMA_UNUSED_FUNCTION \
_Pragma("GCC diagnostic ignored \"-Wunused-function\"")
#elif defined(ARCH_COMPILER_CLANG) #elif defined(ARCH_COMPILER_CLANG)
#define ARCH_PRAGMA_PUSH \ #define ARCH_PRAGMA_PUSH \
@@ -74,9 +71,6 @@
#define ARCH_PRAGMA_WRITE_STRINGS \ #define ARCH_PRAGMA_WRITE_STRINGS \
_Pragma("clang diagnostic ignored \"-Wwrite-strings\"") _Pragma("clang diagnostic ignored \"-Wwrite-strings\"")
#define ARCH_PRAGMA_UNUSED_FUNCTION \
_Pragma("clang diagnostic ignored \"-Wunused-function\"")
#define ARCH_PRAGMA_INSTANTIATION_AFTER_SPECIALIZATION \ #define ARCH_PRAGMA_INSTANTIATION_AFTER_SPECIALIZATION \
_Pragma("clang diagnostic ignored \"-Winstantiation-after-specialization\"") _Pragma("clang diagnostic ignored \"-Winstantiation-after-specialization\"")
@@ -97,9 +91,6 @@
#define ARCH_PRAGMA_MACRO_REDEFINITION \ #define ARCH_PRAGMA_MACRO_REDEFINITION \
__pragma(warning(disable:4005)) __pragma(warning(disable:4005))
#define ARCH_PRAGMA_UNUSED_FUNCTION \
__pragma(warning(disable:4505))
#define ARCH_PRAGMA_QUALIFIER_HAS_NO_MEANING \ #define ARCH_PRAGMA_QUALIFIER_HAS_NO_MEANING \
__pragma(warning(disable:4180)) __pragma(warning(disable:4180))
@@ -155,10 +146,6 @@
#define ARCH_PRAGMA_WRITE_STRINGS #define ARCH_PRAGMA_WRITE_STRINGS
#endif #endif
#if !defined ARCH_PRAGMA_UNUSED_FUNCTION
#define ARCH_PRAGMA_UNUSED_FUNCTION
#endif
#if !defined ARCH_PRAGMA_MACRO_TOO_FEW_ARGUMENTS #if !defined ARCH_PRAGMA_MACRO_TOO_FEW_ARGUMENTS
#define ARCH_PRAGMA_MACRO_TOO_FEW_ARGUMENTS #define ARCH_PRAGMA_MACRO_TOO_FEW_ARGUMENTS
#endif #endif
+1 -3
View File
@@ -38,7 +38,6 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include <iosfwd> #include <iosfwd>
#include <ctime>
PXR_NAMESPACE_OPEN_SCOPE PXR_NAMESPACE_OPEN_SCOPE
@@ -280,8 +279,7 @@ void ArchGetStackFrames(size_t maxDepth, size_t numFramesToSkipAtTop,
/// Print stack frames to the given ostream. /// Print stack frames to the given ostream.
ARCH_API ARCH_API
void ArchPrintStackFrames(std::ostream& out, void ArchPrintStackFrames(std::ostream& out,
const std::vector<uintptr_t> &frames, const std::vector<uintptr_t> &frames);
bool skipUnknownFrames = false);
/// Callback for handling crashes. /// Callback for handling crashes.
/// \see ArchCrashHandlerSystemv /// \see ArchCrashHandlerSystemv
+1 -5
View File
@@ -36,7 +36,7 @@
/// \addtogroup group_arch_SystemFunctions /// \addtogroup group_arch_SystemFunctions
///@{ ///@{
#if defined(ARCH_OS_LINUX) && defined(ARCH_CPU_INTEL) #if defined(ARCH_OS_LINUX)
#include <x86intrin.h> #include <x86intrin.h>
#elif defined(ARCH_OS_DARWIN) #elif defined(ARCH_OS_DARWIN)
#include <mach/mach_time.h> #include <mach/mach_time.h>
@@ -69,10 +69,6 @@ ArchGetTickTime()
#elif defined(ARCH_CPU_INTEL) #elif defined(ARCH_CPU_INTEL)
// On Intel we'll use the rdtsc instruction. // On Intel we'll use the rdtsc instruction.
return __rdtsc(); return __rdtsc();
#elif defined (ARCH_CPU_ARM)
uint64_t result;
__asm __volatile("mrs %0, CNTVCT_EL0" : "=&r" (result));
return result;
#else #else
#error Unknown architecture. #error Unknown architecture.
#endif #endif
+3 -17
View File
@@ -158,7 +158,7 @@ class GfRotation {
// an equivalent rotation that is as close as possible to the hints. // an equivalent rotation that is as close as possible to the hints.
// //
// One can use this routine to generate any combination of the three // One can use this routine to generate any combination of the three
// angles by passing in nullptr for the angle that is to be omitted. // angles by passing in NULL for the angle that is to be omitted.
// //
// Passing in valid pointers for all four angles will decompose into // Passing in valid pointers for all four angles will decompose into
// Tw, FB, and LR but allows Sw to be used for best matching of hint // Tw, FB, and LR but allows Sw to be used for best matching of hint
@@ -185,9 +185,9 @@ class GfRotation {
double *thetaTw, double *thetaTw,
double *thetaFB, double *thetaFB,
double *thetaLR, double *thetaLR,
double *thetaSw = nullptr, double *thetaSw = NULL,
bool useHint=false, bool useHint=false,
const double *swShift=nullptr); const double *swShift=NULL);
// This function projects the vectors \p v1 and \p v2 onto the plane // This function projects the vectors \p v1 and \p v2 onto the plane
// normal to \p axis, and then returns the rotation about \p axis that // normal to \p axis, and then returns the rotation about \p axis that
@@ -197,20 +197,6 @@ class GfRotation {
const GfVec3d &v2, const GfVec3d &v2,
const GfVec3d &axis); const GfVec3d &axis);
/// Replace the hint angles with the closest rotation of the given
/// rotation to the hint.
///
/// Each angle in the rotation will be within Pi of the corresponding
/// hint angle and the sum of the differences with the hint will
/// be minimized. If a given rotation value is null then that angle will
/// be treated as 0.0 and ignored in the calculations.
///
/// All angles are in radians. The rotation order is Tw/FB/LR/Sw.
GF_API
static void MatchClosestEulerRotation(
double targetTw, double targetFB, double targetLR, double targetSw,
double *thetaTw, double *thetaFB, double *thetaLR, double *thetaSw);
/// Transforms row vector \p vec by the rotation, returning the result. /// Transforms row vector \p vec by the rotation, returning the result.
GF_API GF_API
GfVec3f TransformDir( const GfVec3f &vec ) const; GfVec3f TransformDir( const GfVec3f &vec ) const;
+2 -2
View File
@@ -45,8 +45,8 @@
#include <tbb/enumerable_thread_specific.h> #include <tbb/enumerable_thread_specific.h>
#include <tbb/spin_rw_mutex.h> #include <tbb/spin_rw_mutex.h>
#include <tbb/atomic.h>
#include <atomic>
#include <cstdarg> #include <cstdarg>
#include <list> #include <list>
#include <string> #include <string>
@@ -434,7 +434,7 @@ private:
mutable tbb::spin_rw_mutex _delegatesMutex; mutable tbb::spin_rw_mutex _delegatesMutex;
// Global serial number for sorting. // Global serial number for sorting.
std::atomic<size_t> _nextSerial; tbb::atomic<size_t> _nextSerial;
// Thread-specific error list. // Thread-specific error list.
tbb::enumerable_thread_specific<ErrorList> _errorList; tbb::enumerable_thread_specific<ErrorList> _errorList;
-155
View File
@@ -1,155 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_BASE_TF_EXCEPTION_H
#define PXR_BASE_TF_EXCEPTION_H
/// \file tf/exception.h
/// \ingroup group_tf_Diagnostic
#include "pxr/pxr.h"
#include "pxr/base/tf/api.h"
#include "pxr/base/tf/callContext.h"
#include "pxr/base/tf/functionRef.h"
#include <cstdint>
#include <exception>
#include <string>
#include <vector>
PXR_NAMESPACE_OPEN_SCOPE
/// This structure is used to indicate that some number of caller frames should
/// be skipped when capturing exception stack traces at the throw point.
struct TfSkipCallerFrames
{
explicit TfSkipCallerFrames(int n=0) : numToSkip(n) {}
int numToSkip;
};
/// The base class for exceptions supported by the Tf exceptions facilities.
/// Typical usage is to publically derive your own exception class from this
/// one, and throw using the TF_THROW() macro.
///
/// Deriving this base class and throwing via TF_THROW() will record the throw
/// point's call context (see GetThrowContext()) and will also capture a portion
/// of the throwing thread's call stack (see GetThrowStack()).
///
/// Additionally, the Tf library registers an exception translator with
/// boost.python to raise a Python exeption wrapping the thrown exception
/// object. Similarly utilties that call Python via Tf will re-throw the
/// embedded C++ exception if the Python exception unwinds back into C++.
class TfBaseException : public std::exception
{
public:
TF_API
virtual ~TfBaseException();
/// Construct with \p message, reported by this class's what()
/// implementation.
TF_API
explicit TfBaseException(std::string const &message);
/// Return the call context from the throw point associated with this
/// exception. Note that this context may be invalid if this exception was
/// not thrown with TF_THROW().
TfCallContext const &GetThrowContext() const {
return _callContext;
}
/// Return the stack frame pointers from the throw point. See
/// ArchPrintStackFrames() to turn these into human-readable strings.
std::vector<uintptr_t> const &GetThrowStack() const {
return _throwStack;
}
/// Move the stack frame pointers from the throw point to \p out. See
/// GetThrowStack() for more details.
void MoveThrowStackTo(std::vector<uintptr_t> &out) {
out = std::move(_throwStack);
_throwStack.clear();
}
/// Override std::exception::what() to return the message passed during
/// construction.
TF_API
virtual const char *what() const noexcept override;
// Friend throw support.
template <class Derived, class ... Args>
friend void
Tf_Throw(TfCallContext const &cc,
TfSkipCallerFrames skipFrames,
Args && ... args);
private:
TF_API
static void _ThrowImpl(TfCallContext const &cc,
TfBaseException &exc,
TfFunctionRef<void ()> thrower,
int skipNCallerFrames);
TfCallContext _callContext;
std::vector<uintptr_t> _throwStack;
std::string _message;
};
// TF_THROW() support function.
template <class Exception, class ... Args>
void
Tf_Throw(TfCallContext const &cc,
TfSkipCallerFrames skipFrames,
Args && ... args) {
Exception exc(std::forward<Args>(args)...);
auto thrower = [&exc]() { throw std::move(exc); };
TfBaseException::_ThrowImpl(cc, exc, thrower, skipFrames.numToSkip);
}
// TF_THROW() support function.
template <class Exception, class ... Args>
void Tf_Throw(TfCallContext const &cc, Args && ... args) {
Tf_Throw<Exception>(cc, TfSkipCallerFrames(), std::forward<Args>(args)...);
}
#ifdef doxygen
/// Construct an instance of Exception (which must derive TfBaseException) with
/// Exception-ctor-args and throw it. Also capture a portion of this thread's
/// current call stack and the throw point's source filename & line number to
/// embed in the exception. If the exception goes unhandled these will be
/// reported in the crash report that Tf's terminate handler generates, or in
/// the unhandled exception message in the python interpreter.
#define TF_THROW(Exception, Exception-ctor-args...)
#define TF_THROW(Exception, TfSkipCallerFrames, Exception-ctor-args...)
#else
#define TF_THROW(Exception, ...) \
Tf_Throw<Exception>(TF_CALL_CONTEXT, __VA_ARGS__)
#endif
PXR_NAMESPACE_CLOSE_SCOPE
#endif // PXR_BASE_TF_EXCEPTION_H
-7
View File
@@ -43,13 +43,6 @@ class TfFunctionRef;
/// only in the duration of the function call, and you want to keep your /// only in the duration of the function call, and you want to keep your
/// function's implementation out-of-line. /// function's implementation out-of-line.
/// ///
/// For technical reasons, TfFunctionRef does not support function pointers;
/// only function objects. Internally TfFunctionRef stores a void pointer to
/// the function object it's referencing, but C++ does not allow function
/// pointers to be cast to void pointers. Supporting this case would increase
/// this class's size and add complexity to its implementation. Instead,
/// callers may wrap function pointers in lambdas to sidestep the issue.
///
/// The advantage over std::function is that TfFunctionRef is lighter-weight. /// The advantage over std::function is that TfFunctionRef is lighter-weight.
/// Since it is non-owning, it guarantees no heap allocation; a possibility with /// Since it is non-owning, it guarantees no heap allocation; a possibility with
/// std::function. The cost to call a TfFunctionRef is an indirect function /// std::function. The cost to call a TfFunctionRef is an indirect function
-2
View File
@@ -37,7 +37,6 @@
#include "pxr/pxr.h" #include "pxr/pxr.h"
#include "pxr/base/tf/api.h"
#include "pxr/base/tf/refPtr.h" #include "pxr/base/tf/refPtr.h"
#include "pxr/base/tf/weakPtr.h" #include "pxr/base/tf/weakPtr.h"
#include "pxr/base/tf/diagnostic.h" #include "pxr/base/tf/diagnostic.h"
@@ -131,7 +130,6 @@ struct InitVisitor : bp::def_visitor<InitVisitor<CTOR> > {
}; };
TF_API
bp::object _DummyInit(bp::tuple const & /* args */, bp::object _DummyInit(bp::tuple const & /* args */,
bp::dict const & /* kw */); bp::dict const & /* kw */);
-15
View File
@@ -40,7 +40,6 @@
#include "pxr/pxr.h" #include "pxr/pxr.h"
#include "pxr/base/tf/hashmap.h" #include "pxr/base/tf/hashmap.h"
#include "pxr/base/tf/smallVector.h"
#include <ostream> #include <ostream>
#include <vector> #include <vector>
@@ -59,20 +58,6 @@ constexpr bool Tf_IsOstreamable() {
std::ostream &, /* << */ T, /* -> */ std::ostream &>::value; std::ostream &, /* << */ T, /* -> */ std::ostream &>::value;
} }
/// Output a TfSmallVector using [ ] as delimiters.
/// \ingroup group_tf_DebuggingOutput
template <class T, uint32_t N>
typename std::enable_if<PXR_NS::Tf_IsOstreamable<T>(), std::ostream &>::type
operator<<(std::ostream &out, const TfSmallVector<T, N> &v)
{
out << "[ ";
for (auto const &obj: v)
out << obj << " ";
out << "]";
return out;
}
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_CLOSE_SCOPE
// These operator<< overloads need to go in the std namespace for // These operator<< overloads need to go in the std namespace for
+29 -19
View File
@@ -65,9 +65,9 @@ protected:
// Invoke std::uninitialized_copy that either moves or copies entries, // Invoke std::uninitialized_copy that either moves or copies entries,
// depending on whether the type is move constructible or not. // depending on whether the type is move constructible or not.
template <typename Iterator> template <typename Iterator>
static Iterator _UninitializedMove( static void _UninitializedMove(
Iterator first, Iterator last, Iterator dest) { Iterator first, Iterator last, Iterator dest) {
return std::uninitialized_copy( std::uninitialized_copy(
std::make_move_iterator(first), std::make_move_iterator(first),
std::make_move_iterator(last), std::make_move_iterator(last),
dest); dest);
@@ -863,8 +863,6 @@ private:
// a rvalue reference or const reference. // a rvalue reference or const reference.
template < typename U > template < typename U >
iterator _Insert(const_iterator it, U &&v) { iterator _Insert(const_iterator it, U &&v) {
value_type *newEntry;
// If the iterator points to the end, simply push back. // If the iterator points to the end, simply push back.
if (it == end()) { if (it == end()) {
push_back(std::forward<U>(v)); push_back(std::forward<U>(v));
@@ -879,37 +877,49 @@ private:
value_type *newStorage = _Allocate(newCapacity); value_type *newStorage = _Allocate(newCapacity);
value_type *i = const_cast<value_type *>(&*it); value_type *i = const_cast<value_type *>(&*it);
value_type *curData = data(); value_type *d = newStorage;
newEntry = _UninitializedMove(curData, i, newStorage); value_type *b = data();
for (; b != i; ++d, ++b) {
*d = std::forward<U>(*b);
}
new (newEntry) value_type(std::forward<U>(v)); value_type *current = d;
new (current) value_type(std::forward<U>(v));
_UninitializedMove(i, curData + size(), newEntry + 1); const value_type *e = data() + size();
for (++d; b != e; ++d, ++b) {
*d = std::forward<U>(*b);
}
_Destruct(); _Destruct();
_FreeStorage(); _FreeStorage();
_data.SetRemoteStorage(newStorage); _data.SetRemoteStorage(newStorage);
_capacity = newCapacity; _capacity = newCapacity;
return iterator(current);
} }
// Our current capacity is big enough to allow us to simply shift // Our current capacity is big enough to allow us to simply shift
// elements up one slot and insert v at it. // elements up one slot and insert v at it.
else { else {
// Move all the elements after it up by one slot. // Move all the elements after it up by one slot.
newEntry = const_cast<value_type *>(&*it); value_type *i = const_cast<value_type *>(&*it);
value_type *last = const_cast<value_type *>(&back()); value_type *p = const_cast<value_type *>(&back());
new (data() + size()) value_type(std::move(*last)); new (data() + size()) value_type(std::forward<U>(*(p--)));
std::move_backward(newEntry, last, last + 1); for (; p >= i; --p) {
*(p + 1) = std::forward<U>(*p);
// Move v into the slot at the supplied iterator position.
newEntry->~value_type();
new (newEntry) value_type(std::forward<U>(v));
} }
// Bump size and return an iterator to the newly inserted entry. // Move v into the slot at the supplied iterator position.
++_size; i->~value_type();
return iterator(newEntry); new (i) value_type(std::forward<U>(v));
// Bump up the size;
_size += 1;
// Return an iterator to the newly inserted entry.
return iterator(i);
}
} }
// The vector storage, which is a union of the local storage and a pointer // The vector storage, which is a union of the local storage and a pointer
-1
View File
@@ -28,7 +28,6 @@
#include "pxr/base/tf/api.h" #include "pxr/base/tf/api.h"
#include <cstdio> #include <cstdio>
#include <ctime>
#include <iosfwd> #include <iosfwd>
#include <string> #include <string>
+1 -1
View File
@@ -58,7 +58,7 @@ class TraceCollectionAvailable;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// \class TraceReporter /// \class TraceReporter
/// ///
/// This class converts streams of TraceEvent objects into call trees which /// This class converters streams of TraceEvent objects into call trees which
/// can then be used as a data source to a GUI or written out to a file. /// can then be used as a data source to a GUI or written out to a file.
/// ///
class TraceReporter : class TraceReporter :
+135
View File
@@ -0,0 +1,135 @@
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_BASE_WORK_ARENA_DISPATCHER_H
#define PXR_BASE_WORK_ARENA_DISPATCHER_H
/// \file work/arenaDispatcher.h
#include "pxr/pxr.h"
#include "pxr/base/work/dispatcher.h"
#include "pxr/base/work/threadLimits.h"
#include "pxr/base/work/api.h"
#include <tbb/task_arena.h>
#include <functional>
#include <type_traits>
#include <utility>
PXR_NAMESPACE_OPEN_SCOPE
/// \class WorkArenaDispatcher
///
/// This is a specialization of the WorkDispatcher that uses an isolated arena
/// to Run() all its tasks in. The WorkArenaDispatcher is useful where it must
/// be guaranteed that a specific set of tasks shall not be stolen by any
/// other dispatcher, or where stealing from other dispatchers could cause
/// lock dependencies that may lead to deadlocks. Note that a regular
/// WorkDispatcher can provide better throughput, and should thus be the
/// preferred over the WorkArenaDispatcher.
///
/// The interface of the WorkArenaDispatcher, and thread-safety notes about its
/// API are identical to those of the WorkDispatcher.
///
class WorkArenaDispatcher
{
public:
/// Constructs a new dispatcher. The internal arena will mirror the
/// global concurrency limit setting.
WorkArenaDispatcher() : _arena(_GetArena()) {}
/// Wait() for any pending tasks to complete, then destroy the dispatcher.
WORK_API ~WorkArenaDispatcher();
WorkArenaDispatcher(WorkArenaDispatcher const &) = delete;
WorkArenaDispatcher &operator=(WorkArenaDispatcher const &) = delete;
#ifdef doxygen
/// Add work for the dispatcher to run.
///
/// Before a call to Wait() is made it is safe for any client to invoke
/// Run(). Once Wait() is invoked, it is \b only safe to invoke Run() from
/// within the execution of tasks already added via Run().
///
/// This function does not block. The added work may be not yet started,
/// may be started but not completed, or may be completed upon return. No
/// guarantee is made.
template <class Callable, class A1, class A2, ... class AN>
void Run(Callable &&c, A1 &&a1, A2 &&a2, ... AN &&aN);
#else // doxygen
template <class Callable, class ... Args>
inline void Run(Callable &&c, Args&&... args) {
_arena->execute(
_MakeRunner(&_dispatcher,
std::bind(std::forward<Callable>(c),
std::forward<Args>(args)...)));
}
#endif // doxygen
/// Block until the work started by Run() completes.
WORK_API void Wait();
/// Cancel remaining work and return immediately.
///
/// This call does not block. Call Wait() after Cancel() to wait for
/// pending tasks to complete.
WORK_API void Cancel();
private:
WORK_API tbb::task_arena *_GetArena() const;
template <class Fn>
struct _Runner {
_Runner(WorkDispatcher *wd, Fn &&fn) : _wd(wd), _fn(std::move(fn)) {}
_Runner(WorkDispatcher *wd, Fn const &fn) : _wd(wd), _fn(fn) {}
void operator()() { _wd->Run(std::move(_fn)); }
void operator()() const { _wd->Run(std::move(_fn)); }
private:
WorkDispatcher *_wd;
mutable Fn _fn;
};
template <class Fn>
_Runner<typename std::remove_reference<Fn>::type>
_MakeRunner(WorkDispatcher *wd, Fn &&fn) {
return _Runner<typename std::remove_reference<Fn>::type>(
wd, std::forward<Fn>(fn));
}
// The task arena.
tbb::task_arena *_arena;
// The dispatcher.
WorkDispatcher _dispatcher;
};
///////////////////////////////////////////////////////////////////////////////
PXR_NAMESPACE_CLOSE_SCOPE
#endif // PXR_BASE_WORK_ARENA_DISPATCHER_H
+11 -19
View File
@@ -29,7 +29,8 @@
#include "pxr/pxr.h" #include "pxr/pxr.h"
#include "pxr/base/tf/errorMark.h" #include "pxr/base/tf/errorMark.h"
#include "pxr/base/work/api.h" #include "pxr/base/work/api.h"
#include "pxr/base/work/dispatcher.h"
#include <tbb/task.h>
#include <type_traits> #include <type_traits>
#include <utility> #include <utility>
@@ -37,24 +38,20 @@
PXR_NAMESPACE_OPEN_SCOPE PXR_NAMESPACE_OPEN_SCOPE
template <class Fn> template <class Fn>
struct Work_DetachedTask struct Work_DetachedInvoker : public tbb::task {
{ explicit Work_DetachedInvoker(Fn &&fn) : _fn(std::move(fn)) {}
explicit Work_DetachedTask(Fn &&fn) : _fn(std::move(fn)) {} explicit Work_DetachedInvoker(Fn const &fn) : _fn(fn) {}
explicit Work_DetachedTask(Fn const &fn) : _fn(fn) {} virtual tbb::task *execute() {
void operator()() {
TfErrorMark m; TfErrorMark m;
_fn(); _fn();
m.Clear(); m.Clear();
return nullptr;
} }
private: private:
Fn _fn; Fn _fn;
}; };
WORK_API WORK_API tbb::task_group_context &Work_GetDetachedTaskGroupContext();
WorkDispatcher &Work_GetDetachedDispatcher();
WORK_API
void Work_EnsureDetachedTaskProgress();
/// Invoke \p fn asynchronously, discard any errors it produces, and provide /// Invoke \p fn asynchronously, discard any errors it produces, and provide
/// no way to wait for it to complete. /// no way to wait for it to complete.
@@ -62,14 +59,9 @@ template <class Fn>
void WorkRunDetachedTask(Fn &&fn) void WorkRunDetachedTask(Fn &&fn)
{ {
using FnType = typename std::remove_reference<Fn>::type; using FnType = typename std::remove_reference<Fn>::type;
Work_DetachedTask<FnType> task(std::forward<Fn>(fn)); tbb::task::enqueue(
if (WorkHasConcurrency()) { *new (tbb::task::allocate_root(Work_GetDetachedTaskGroupContext()))
Work_GetDetachedDispatcher().Run(std::move(task)); Work_DetachedInvoker<FnType>(std::forward<Fn>(fn)));
Work_EnsureDetachedTaskProgress();
}
else {
task();
}
} }
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_CLOSE_SCOPE
+2 -2
View File
@@ -65,7 +65,7 @@ WorkSerialForN(size_t n, Fn &&fn)
/// ///
/// void LoopCallback(size_t begin, size_t end); /// void LoopCallback(size_t begin, size_t end);
/// ///
/// grainSize specifies a minimum amount of work to be done per-thread. There /// grainSize specifices a minumum amount of work to be done per-thread. There
/// is overhead to launching a thread (or task) and a typical guideline is that /// is overhead to launching a thread (or task) and a typical guideline is that
/// you want to have at least 10,000 instructions to count for the overhead of /// you want to have at least 10,000 instructions to count for the overhead of
/// launching a thread. /// launching a thread.
@@ -78,7 +78,7 @@ WorkParallelForN(size_t n, Fn &&callback, size_t grainSize)
return; return;
// Don't bother with parallel_for, if concurrency is limited to 1. // Don't bother with parallel_for, if concurrency is limited to 1.
if (WorkHasConcurrency()) { if (WorkGetConcurrencyLimit() > 1) {
class Work_ParallelForN_TBB class Work_ParallelForN_TBB
{ {
+1 -1
View File
@@ -108,7 +108,7 @@ WorkParallelReduceN(
return identity; return identity;
// Don't bother with parallel_reduce, if concurrency is limited to 1. // Don't bother with parallel_reduce, if concurrency is limited to 1.
if (WorkHasConcurrency()) { if (WorkGetConcurrencyLimit() > 1) {
class Work_Body_TBB class Work_Body_TBB
{ {
+12
View File
@@ -35,6 +35,7 @@
PXR_NAMESPACE_OPEN_SCOPE PXR_NAMESPACE_OPEN_SCOPE
class WorkDispatcher; class WorkDispatcher;
class WorkArenaDispatcher;
/// \class WorkSingularTask /// \class WorkSingularTask
/// ///
@@ -74,6 +75,11 @@ public:
WorkSingularTask(WorkDispatcher &dispatcher, WorkSingularTask(WorkDispatcher &dispatcher,
Callable &&c, A1 &&a1, A2 &&a2, ... AN &&aN); Callable &&c, A1 &&a1, A2 &&a2, ... AN &&aN);
/// \overload
template <class Callable, class A1, class A2, ... class AN>
WorkSingularTask(WorkArenaDispatcher &dispatcher,
Callable &&c, A1 &&a1, A2 &&a2, ... AN &&aN);
#else // doxygen #else // doxygen
template <class Callable, class... Args> template <class Callable, class... Args>
@@ -82,6 +88,12 @@ public:
std::forward<Args>(args)...))) std::forward<Args>(args)...)))
, _count(0) {} , _count(0) {}
template <class Callable, class... Args>
WorkSingularTask(WorkArenaDispatcher &d, Callable &&c, Args&&... args)
: _waker(_MakeWaker(d, std::bind(std::forward<Callable>(c),
std::forward<Args>(args)...)))
, _count(0) {}
#endif // doxygen #endif // doxygen
/// Ensure that this task runs at least once after this call. The task is /// Ensure that this task runs at least once after this call. The task is
+4 -13
View File
@@ -33,13 +33,10 @@ PXR_NAMESPACE_OPEN_SCOPE
/// Return the current concurrency limit, always >= 1. /// Return the current concurrency limit, always >= 1.
/// ///
/// This value is determined by the underlying concurrency subsystem. It may /// The initial value is determined by the PXR_WORK_THREAD_LIMIT env setting,
/// have been set by a third party, by a call to Work API below, or by Work /// which defaults to WorkGetPhysicalConcurrencyLimit(). If the env setting
/// itself if the PXR_WORK_THREAD_LIMIT env setting was set. If the /// has been explicitly set to a non-zero value, it will always override any
/// PXR_WORK_THREAD_LIMIT env setting has been explicitly set to a non-zero /// concurrency limit set via the API calls below.
/// value, Work will attempt to configure the underlying concurrency subsystem
/// to use the specified limit and will ignore concurrency limits set via the
/// API calls below.
/// ///
/// Note that this can return a value larger than /// Note that this can return a value larger than
/// WorkGetPhysicalConcurrencyLimit() if WorkSetConcurrencyLimit() was called /// WorkGetPhysicalConcurrencyLimit() if WorkSetConcurrencyLimit() was called
@@ -47,12 +44,6 @@ PXR_NAMESPACE_OPEN_SCOPE
/// ///
WORK_API unsigned WorkGetConcurrencyLimit(); WORK_API unsigned WorkGetConcurrencyLimit();
/// Return true if WorkGetPhysicalConcurrencyLimit() returns a number greater
/// than 1 and PXR_WORK_THREAD_LIMIT was not set in an attempt to limit the
/// process to a single thread, false otherwise.
///
WORK_API bool WorkHasConcurrency();
/// Return the number of physical execution cores available to the program. /// Return the number of physical execution cores available to the program.
/// This is either the number of physical cores on the machine or the number of /// This is either the number of physical cores on the machine or the number of
/// cores specified by the process's affinity mask, whichever is smaller. /// cores specified by the process's affinity mask, whichever is smaller.
@@ -1,119 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_BASE_WORK_WITH_SCOPED_PARALLELISM_H
#define PXR_BASE_WORK_WITH_SCOPED_PARALLELISM_H
///\file work/withScopedParallelism.h
#include "pxr/pxr.h"
#include "pxr/base/work/api.h"
#include <tbb/task_arena.h>
#include <utility>
PXR_NAMESPACE_OPEN_SCOPE
/// Invoke \p fn, ensuring that all wait operations on concurrent constructs
/// invoked by the calling thread only take tasks created within the scope of \p
/// fn 's execution.
///
/// Ordinarily when a thread invokes a wait operation on a concurrent construct
/// (e.g. the explicit WorkDispatcher::Wait(), or the implicit wait in loops
/// like WorkParallelForEach()) it joins the pool of worker threads and executes
/// tasks to help complete the work. This is good, since the calling thread
/// does useful work instead of busy waiting or sleeping until the work has
/// completed. However, this can be problematic depending on the calling
/// context, and which tasks the waiting thread executes.
///
/// For example, consider the following example: a demand-populated resource
/// cache.
///
/// \code
/// ResourceHandle
/// GetResource(ResourceKey key) {
/// // Attempt to lookup/insert an entry for \p key. If we insert the
/// // element, then populate the resource.
/// ResourceAccessorAndLock accessor;
/// if (_resources.FindOrCreate(key, &accessor)) {
/// // No previous entry, so populate the resource.
/// WorkDispatcher wd;
/// wd.Run( /* resource population task 1 */);
/// wd.Run( /* resource population task 2 */);
/// wd.Run( /* resource population task 3 */);
/// WorkParallelForN( /* parallel population code */);
/// wd.Wait();
/// /* Store resource data. */
/// }
/// return *accessor.first;
/// }
/// \endcode
///
/// Here when a caller has requested the resource for \p key for the first time,
/// we do the work to populate the resource while holding a lock on that
/// resource entry in the cache. The problem is that when the calling thread
/// waits for work to complete, if it picks up tasks unrelated to this context
/// and those tasks attempt to call GetResource() with the same key, the process
/// will deadlock.
///
/// This can be fixed by using WorkWithScopedParallelism() to ensure that the
/// calling thread's wait operations only take tasks that were created during
/// the scope of the population work:
///
/// \code
/// ResourceHandle
/// GetResource(ResourceKey key) {
/// // Attempt to lookup/insert an entry for \p key. If we insert the
/// // element, then populate the resource.
/// ResourceAccessorAndLock accessor;
/// if (_resources.FindOrCreate(key, &accessor)) {
/// // No previous entry, so populate the resource.
/// WorkWithScopedParallelism([&accessor]() {
/// WorkDispatcher wd;
/// wd.Run( /* resource population task 1 */);
/// wd.Run( /* resource population task 2 */);
/// wd.Run( /* resource population task 3 */);
/// WorkParallelForN( /* parallel population code */);
/// }
/// /* Store resource data. */
/// }
/// return *accessor.first;
/// }
///
/// This limits parallelism by only a small degree. It's only the waiting
/// thread that restricts the tasks it can take to the protected scope: all
/// other worker threads continue unhindered.
///
template <class Fn>
void
WorkWithScopedParallelism(Fn &&fn)
{
tbb::this_task_arena::isolate(std::forward<Fn>(fn));
}
PXR_NAMESPACE_CLOSE_SCOPE
#endif // PXR_BASE_WORK_WITH_SCOPED_PARALLELISM_H
-1
View File
@@ -33,7 +33,6 @@ PXR_NAMESPACE_OPEN_SCOPE
#define HD_BASISCURVES_REPR_DESC_TOKENS \ #define HD_BASISCURVES_REPR_DESC_TOKENS \
(surfaceShader) \ (surfaceShader) \
(surfaceShaderUnlit) \
(hullColor) \ (hullColor) \
(pointColor) (pointColor)
-136
View File
@@ -1,136 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_BASIS_CURVES_SCHEMA_H
#define PXR_IMAGING_HD_BASIS_CURVES_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/basisCurvesTopologySchema.h"
#include "pxr/imaging/hd/geomSubsetsSchema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDBASISCURVES_SCHEMA_TOKENS \
(basisCurves) \
(topology) \
(geomSubsets) \
TF_DECLARE_PUBLIC_TOKENS(HdBasisCurvesSchemaTokens, HD_API,
HDBASISCURVES_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdBasisCurvesSchema : public HdSchema
{
public:
HdBasisCurvesSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdBasisCurvesTopologySchema GetTopology();
HD_API
HdGeomSubsetsSchema GetGeomSubsets();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdContainerDataSourceHandle &topology,
const HdContainerDataSourceHandle &geomSubsets
);
/// \class HdBasisCurvesSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetTopology(
const HdContainerDataSourceHandle &topology);
HD_API
Builder &SetGeomSubsets(
const HdContainerDataSourceHandle &geomSubsets);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdContainerDataSourceHandle _topology;
HdContainerDataSourceHandle _geomSubsets;
};
/// Retrieves a container data source with the schema's default name token
/// "basisCurves" from the parent container and constructs a
/// HdBasisCurvesSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdBasisCurvesSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the topology data source can be found.
/// This is often useful for checking intersection against the
/// HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
HD_API
static const HdDataSourceLocator &GetTopologyLocator();
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the geomsubsets data source can be found.
/// This is often useful for checking intersection against the
/// HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
HD_API
static const HdDataSourceLocator &GetGeomSubsetsLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -130,12 +130,6 @@ public:
return _curveVertexCounts.size(); return _curveVertexCounts.size();
} }
/// Returns the number of points implied by vertex counts and indices
HD_API
size_t GetNumPoints() const {
return _numPoints;
}
/// See class documentation for valid combination of values /// See class documentation for valid combination of values
TfToken GetCurveType() const { return _curveType; } TfToken GetCurveType() const { return _curveType; }
TfToken GetCurveBasis() const { return _curveBasis; } TfToken GetCurveBasis() const { return _curveBasis; }
@@ -170,7 +164,6 @@ private:
VtIntArray _curveIndices; VtIntArray _curveIndices;
VtIntArray _invisiblePoints; VtIntArray _invisiblePoints;
VtIntArray _invisibleCurves; VtIntArray _invisibleCurves;
size_t _numPoints;
}; };
HD_API HD_API
@@ -1,143 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_BASIS_CURVES_TOPOLOGY_SCHEMA_H
#define PXR_IMAGING_HD_BASIS_CURVES_TOPOLOGY_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDBASISCURVESTOPOLOGY_SCHEMA_TOKENS \
(topology) \
(curveVertexCounts) \
(curveIndices) \
(basis) \
(type) \
(wrap) \
TF_DECLARE_PUBLIC_TOKENS(HdBasisCurvesTopologySchemaTokens, HD_API,
HDBASISCURVESTOPOLOGY_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdBasisCurvesTopologySchema : public HdSchema
{
public:
HdBasisCurvesTopologySchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdIntArrayDataSourceHandle GetCurveVertexCounts();
HD_API
HdIntArrayDataSourceHandle GetCurveIndices();
HD_API
HdTokenDataSourceHandle GetBasis();
HD_API
HdTokenDataSourceHandle GetType();
HD_API
HdTokenDataSourceHandle GetWrap();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdIntArrayDataSourceHandle &curveVertexCounts,
const HdIntArrayDataSourceHandle &curveIndices,
const HdTokenDataSourceHandle &basis,
const HdTokenDataSourceHandle &type,
const HdTokenDataSourceHandle &wrap
);
/// \class HdBasisCurvesTopologySchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetCurveVertexCounts(
const HdIntArrayDataSourceHandle &curveVertexCounts);
HD_API
Builder &SetCurveIndices(
const HdIntArrayDataSourceHandle &curveIndices);
HD_API
Builder &SetBasis(
const HdTokenDataSourceHandle &basis);
HD_API
Builder &SetType(
const HdTokenDataSourceHandle &type);
HD_API
Builder &SetWrap(
const HdTokenDataSourceHandle &wrap);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdIntArrayDataSourceHandle _curveVertexCounts;
HdIntArrayDataSourceHandle _curveIndices;
HdTokenDataSourceHandle _basis;
HdTokenDataSourceHandle _type;
HdTokenDataSourceHandle _wrap;
};
/// Retrieves a container data source with the schema's default name token
/// "topology" from the parent container and constructs a
/// HdBasisCurvesTopologySchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdBasisCurvesTopologySchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -72,9 +72,6 @@ public:
/// Returns true if this range is marked as immutable. /// Returns true if this range is marked as immutable.
virtual bool IsImmutable() const = 0; virtual bool IsImmutable() const = 0;
/// Returns true if this needs a staging buffer for CPU to GPU copies.
virtual bool RequiresStaging() const = 0;
/// Resize memory area for this range. Returns true if it causes container /// Resize memory area for this range. Returns true if it causes container
/// buffer reallocation. /// buffer reallocation.
virtual bool Resize(int numElements) = 0; virtual bool Resize(int numElements) = 0;
-170
View File
@@ -1,170 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_CAMERA_SCHEMA_H
#define PXR_IMAGING_HD_CAMERA_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDCAMERA_SCHEMA_TOKENS \
(camera) \
(projection) \
(horizontalAperture) \
(verticalAperture) \
(horizontalApertureOffset) \
(verticalApertureOffset) \
(focalLength) \
(clippingRange) \
(perspective) \
(orthographic) \
TF_DECLARE_PUBLIC_TOKENS(HdCameraSchemaTokens, HD_API,
HDCAMERA_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdCameraSchema : public HdSchema
{
public:
HdCameraSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdTokenDataSourceHandle GetProjection();
HD_API
HdFloatDataSourceHandle GetHorizontalAperture();
HD_API
HdFloatDataSourceHandle GetVerticalAperture();
HD_API
HdFloatDataSourceHandle GetHorizontalApertureOffset();
HD_API
HdFloatDataSourceHandle GetVerticalApertureOffset();
HD_API
HdFloatDataSourceHandle GetFocalLength();
HD_API
HdVec2fDataSourceHandle GetClippingRange();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdTokenDataSourceHandle &projection,
const HdFloatDataSourceHandle &horizontalAperture,
const HdFloatDataSourceHandle &verticalAperture,
const HdFloatDataSourceHandle &horizontalApertureOffset,
const HdFloatDataSourceHandle &verticalApertureOffset,
const HdFloatDataSourceHandle &focalLength,
const HdVec2fDataSourceHandle &clippingRange
);
/// \class HdCameraSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetProjection(
const HdTokenDataSourceHandle &projection);
HD_API
Builder &SetHorizontalAperture(
const HdFloatDataSourceHandle &horizontalAperture);
HD_API
Builder &SetVerticalAperture(
const HdFloatDataSourceHandle &verticalAperture);
HD_API
Builder &SetHorizontalApertureOffset(
const HdFloatDataSourceHandle &horizontalApertureOffset);
HD_API
Builder &SetVerticalApertureOffset(
const HdFloatDataSourceHandle &verticalApertureOffset);
HD_API
Builder &SetFocalLength(
const HdFloatDataSourceHandle &focalLength);
HD_API
Builder &SetClippingRange(
const HdVec2fDataSourceHandle &clippingRange);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdTokenDataSourceHandle _projection;
HdFloatDataSourceHandle _horizontalAperture;
HdFloatDataSourceHandle _verticalAperture;
HdFloatDataSourceHandle _horizontalApertureOffset;
HdFloatDataSourceHandle _verticalApertureOffset;
HdFloatDataSourceHandle _focalLength;
HdVec2fDataSourceHandle _clippingRange;
};
/// Retrieves a container data source with the schema's default name token
/// "camera" from the parent container and constructs a
/// HdCameraSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdCameraSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
/// Returns token data source for use as projection value.
/// Values of...
/// - HdCameraSchemaTokens->perspective
/// - HdCameraSchemaTokens->orthographic
/// ...will be stored statically and reused for future calls.
HD_API
static HdTokenDataSourceHandle BuildProjectionDataSource(
const TfToken &projection);
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
-81
View File
@@ -1,81 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_CATEGORIES_SCHEMA_H
#define PXR_IMAGING_HD_CATEGORIES_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDCATEGORIES_SCHEMA_TOKENS \
(categories) \
TF_DECLARE_PUBLIC_TOKENS(HdCategoriesSchemaTokens, HD_API,
HDCATEGORIES_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdCategoriesSchema : public HdSchema
{
public:
HdCategoriesSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
VtArray<TfToken> GetIncludedCategoryNames();
bool IsIncludedInCategory(const TfToken &categoryName);
static HdContainerDataSourceHandle BuildRetained(
size_t includedNameCount,
TfToken *includedNames,
size_t excludedNameCount,
TfToken *excludedNames);
/// Retrieves a container data source with the schema's default name token
/// "categories" from the parent container and constructs a
/// HdCategoriesSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdCategoriesSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+15 -65
View File
@@ -37,7 +37,6 @@
PXR_NAMESPACE_OPEN_SCOPE PXR_NAMESPACE_OPEN_SCOPE
class HdRetainedSceneIndex;
/// \class HdChangeTracker /// \class HdChangeTracker
/// ///
@@ -86,7 +85,6 @@ public:
CustomBitsBegin = 1 << 24, CustomBitsBegin = 1 << 24,
CustomBitsEnd = 1 << 30, CustomBitsEnd = 1 << 30,
CustomBitsMask = 0x7f << 24,
}; };
// InstancerDirtybits are a subset of rprim dirty bits right now: // InstancerDirtybits are a subset of rprim dirty bits right now:
@@ -156,7 +154,7 @@ public:
/// The idea is that from frame to frame (update iteration), the set of /// The idea is that from frame to frame (update iteration), the set of
/// dirty rprims and their dirty bits do not change; that is, the same /// dirty rprims and their dirty bits do not change; that is, the same
/// rprims get dirtied with the same dirty bits.. The change tracker can /// rprims get dirtied with the same dirty bits.. The change tracker can
/// leverage this help build a stable dirty list and reduce the /// leverage this and build stable sets of dirty lists and reduce the
/// overall cost of an update iteration. /// overall cost of an update iteration.
HD_API HD_API
void ResetVaryingState(); void ResetVaryingState();
@@ -219,8 +217,7 @@ public:
HD_API HD_API
bool IsPrimIdDirty(SdfPath const& id); bool IsPrimIdDirty(SdfPath const& id);
/// Returns true if the dirtyBits has any flags set other than the varying /// Returns true if the dirtyBits has any flags set other than the varying flag.
/// flag.
static bool IsDirty(HdDirtyBits dirtyBits) { static bool IsDirty(HdDirtyBits dirtyBits) {
return (dirtyBits & AllDirty) != 0; return (dirtyBits & AllDirty) != 0;
} }
@@ -230,7 +227,7 @@ public:
return (dirtyBits & AllDirty) == 0; return (dirtyBits & AllDirty) == 0;
} }
/// Returns true if the varying flag is set. /// Returns true if the dirtyBits has no flags set except the varying flag.
static bool IsVarying(HdDirtyBits dirtyBits) { static bool IsVarying(HdDirtyBits dirtyBits) {
return (dirtyBits & Varying) != 0; return (dirtyBits & Varying) != 0;
} }
@@ -325,15 +322,19 @@ public:
HD_API HD_API
void MarkTaskClean(SdfPath const& id, HdDirtyBits newBits=Clean); void MarkTaskClean(SdfPath const& id, HdDirtyBits newBits=Clean);
/// Retrieve the current version number of the rprim render tag set /// Called to flag when the set of active render tags have changed.
/// XXX Rename to GetRprimRenderTagVersion /// This can either be because either the Task's opinion (which
/// resolves both view and render pass opinions) and a Prims opinion.
///
/// Calling this means that any cached prim gathers that filter by render
/// tag need to invalidated.
HD_API
void MarkRenderTagsDirty();
/// Retrieve the current version number of the render tag set
HD_API HD_API
unsigned GetRenderTagVersion() const; unsigned GetRenderTagVersion() const;
/// Retrieve the current version number of the task's render tags opinion.
HD_API
unsigned GetTaskRenderTagsVersion() const;
// ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- //
/// @} /// @}
/// \name Instancer State Tracking /// \name Instancer State Tracking
@@ -413,22 +414,6 @@ public:
HD_API HD_API
void MarkSprimClean(SdfPath const& id, HdDirtyBits newBits=Clean); void MarkSprimClean(SdfPath const& id, HdDirtyBits newBits=Clean);
/// Insert a dependency between \p sprimId and parent sprim
/// \p parentSprimId.
HD_API
void AddSprimSprimDependency(SdfPath const& parentSprimId,
SdfPath const& sprimId);
/// Remove a dependency between \p sprimId and parent sprim
/// \p parentSprimId.
HD_API
void RemoveSprimSprimDependency(SdfPath const& parentSprimId,
SdfPath const& sprimId);
/// Remove all dependencies involving \p sprimId as a parent or child.
HD_API
void RemoveSprimFromSprimSprimDependencies(SdfPath const& sprimId);
// ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- //
/// @} /// @}
/// \name Bprim (buffer prim: texture, buffer, ...) state Tracking /// \name Bprim (buffer prim: texture, buffer, ...) state Tracking
@@ -601,14 +586,6 @@ private:
_DependencyMap _instancerRprimDependencies; _DependencyMap _instancerRprimDependencies;
_DependencyMap _instancerInstancerDependencies; _DependencyMap _instancerInstancerDependencies;
// Provides forward and reverse-association between sprims and the child
// sprims that reference them. For example, a light prim (child) who needs
// to know when its light filter (parent) is modified.
// Maps parent sprim to child sprim.
_DependencyMap _sprimSprimTargetDependencies;
// Maps child sprim to parent sprim.
_DependencyMap _sprimSprimSourceDependencies;
// Dependency map helpers // Dependency map helpers
void _AddDependency(_DependencyMap &depMap, void _AddDependency(_DependencyMap &depMap,
SdfPath const& parent, SdfPath const& child); SdfPath const& parent, SdfPath const& child);
@@ -637,35 +614,8 @@ private:
// Used to detect that visibility changed somewhere in the render index. // Used to detect that visibility changed somewhere in the render index.
unsigned _visChangeCount; unsigned _visChangeCount;
// Used to detect changes to the render tag opinion of rprims. // Used to detect changes to the set of active render tags
unsigned _rprimRenderTagVersion; unsigned _renderTagVersion;
// Used to detect changes to the render tags opinion of tasks.
unsigned _taskRenderTagsVersion;
// Allow HdRenderIndex to provide a scene index to forward dirty
// information. This is necessary to accommodate legacy HdSceneDelegate
// based applications that rely on the HdChangeTracker for invalidating
// state on Hydra prims.
friend class HdRenderIndex;
// Does not take ownership. The HdRenderIndex manages the lifetime of this
// scene index.
HdRetainedSceneIndex * _emulationSceneIndex;
void _SetTargetSceneIndex(HdRetainedSceneIndex *emulationSceneIndex);
// Private methods which implement the behaviors of their public
// equivalents. The public versions check to see if legacy emulation is
// active. If so, they dirty the HdRetainedSceneIndex member instead
// of directly acting. If legacy render delegate emulation is active, these
// will eventually make their way back to the private methods via
// HdSceneIndexAdapterSceneDelegate. This prevents dirtying cycles while
// allowing single HdRenderIndex/HdChangeTracker instances to be used for
// both ends of emulation.
friend class HdSceneIndexAdapterSceneDelegate;
void _MarkRprimDirty(SdfPath const& id, HdDirtyBits bits=AllDirty);
void _MarkSprimDirty(SdfPath const& id, HdDirtyBits bits=AllDirty);
void _MarkBprimDirty(SdfPath const& id, HdDirtyBits bits=AllDirty);
void _MarkInstancerDirty(SdfPath const& id, HdDirtyBits bits=AllDirty);
}; };
-113
View File
@@ -1,113 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_IMAGING_HD_COMMAND_H
#define PXR_IMAGING_HD_COMMAND_H
#include "pxr/pxr.h"
#include "pxr/imaging/hd/api.h"
#include "pxr/base/vt/dictionary.h"
#include "pxr/base/vt/value.h"
#include "pxr/base/tf/token.h"
#include <vector>
PXR_NAMESPACE_OPEN_SCOPE
/// \class HdCommandArgDescriptor
///
/// A bundle of state describing an argument to a command. See \c
/// HdCommandDescriptor for more information about commands.
///
struct HdCommandArgDescriptor
{
HdCommandArgDescriptor();
HdCommandArgDescriptor(const TfToken &argName,
const VtValue &defaultValue_)
: argName(argName)
, defaultValue(defaultValue_)
{}
///
/// The name of the argument
///
const TfToken argName;
///
/// Default value for this argument
///
const VtValue defaultValue;
};
using HdCommandArgDescriptors = std::vector<HdCommandArgDescriptor>;
///
/// Command arguments are a map of tokens to values
///
using HdCommandArgs = VtDictionary;
/// \class HdCommandDescriptor
///
/// A bundle of state describing a "command". A command is simply a token
/// that can be invoked and delivered to the render delegate.
///
struct HdCommandDescriptor
{
HdCommandDescriptor();
explicit HdCommandDescriptor(
const TfToken &name_,
const std::string &description_="",
const HdCommandArgDescriptors &args_=HdCommandArgDescriptors())
: commandName(name_)
, commandDescription(description_)
, commandArgs(args_)
{}
///
/// A token representing a command that can be invoked.
///
const TfToken commandName;
///
/// A description of the command suitable for display in a UI for example.
///
const std::string commandDescription;
///
/// List of arguments this command supports, may be empty.
///
const HdCommandArgDescriptors commandArgs;
};
using HdCommandDescriptors = std::vector<HdCommandDescriptor>;
PXR_NAMESPACE_CLOSE_SCOPE
#endif // PXR_IMAGING_HD_COMMAND_H
@@ -1,81 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_COORD_SYS_BINDING_SCHEMA_H
#define PXR_IMAGING_HD_COORD_SYS_BINDING_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDCOORDSYSBINDING_SCHEMA_TOKENS \
(coordSysBinding) \
TF_DECLARE_PUBLIC_TOKENS(HdCoordSysBindingSchemaTokens, HD_API,
HDCOORDSYSBINDING_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdCoordSysBindingSchema : public HdSchema
{
public:
HdCoordSysBindingSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
HD_API
static HdContainerDataSourceHandle
BuildRetained(
size_t count,
TfToken *names,
HdDataSourceBaseHandle *values);
HdPathDataSourceHandle GetCoordSysBinding(TfToken const &name);
/// Retrieves a container data source with the schema's default name token
/// "coordSysBinding" from the parent container and constructs a
/// HdCoordSysBindingSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdCoordSysBindingSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
-243
View File
@@ -1,243 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_IMAGING_HD_DATASOURCE_H
#define PXR_IMAGING_HD_DATASOURCE_H
#include "pxr/pxr.h"
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/dataSourceLocator.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/vt/value.h"
#include <iosfwd>
#include <memory>
#include <vector>
#include <atomic>
PXR_NAMESPACE_OPEN_SCOPE
/// HD_DECLARE_DATASOURCE_ABSTRACT
/// Used for non-instantiable classes, this defines a set of functions
/// for manipulating handles to this type of datasource.
#define HD_DECLARE_DATASOURCE_ABSTRACT(type) \
using Handle = std::shared_ptr<type>; \
using AtomicHandle = Handle; \
static Handle AtomicLoad(AtomicHandle &ptr) { \
return std::atomic_load(&ptr); \
} \
static void AtomicStore(AtomicHandle &ptr, Handle &v) { \
std::atomic_store(&ptr, v); \
} \
static Handle Cast(const HdDataSourceBase::Handle &v) { \
return std::dynamic_pointer_cast<type>(v); \
}
/// HD_DECLARE_DATASOURCE
/// Used for instantiable classes, this defines functions for manipulating
/// and allocating handles to this type of datasource.
///
/// Use of this macro in derived classes is important to make sure that
/// core and client code share the same handle type and allocator.
#define HD_DECLARE_DATASOURCE(type) \
HD_DECLARE_DATASOURCE_ABSTRACT(type) \
template <typename ... Args> \
static Handle New(Args&& ... args) { \
return Handle(new type(std::forward<Args>(args) ... )); \
}
#define HD_DECLARE_DATASOURCE_HANDLES(type) \
using type##Handle = type::Handle; \
using type##AtomicHandle = type::AtomicHandle;
/// \class HdDataSourceBase
///
/// Represents an object which can produce scene data.
/// \sa HdContainerDataSource HdVectorDataSource HdSampledDataSource
/// Note that most derived classes will have standard API for allocation
/// and handle manipulation. Derived classes that don't support instantiation
/// should use HD_DECLARE_DATASOURCE_ABSTRACT, which omits the
/// definition of ::New().
///
class HdDataSourceBase
{
public:
HD_DECLARE_DATASOURCE_ABSTRACT(HdDataSourceBase)
HD_API
virtual ~HdDataSourceBase() = 0;
};
HD_DECLARE_DATASOURCE_HANDLES(HdDataSourceBase);
/// \class HdContainerDataSource
///
/// A datasource representing structured (named, hierarchical) data, for
/// example a geometric primitive or a sub-object like a material definition.
/// Note that implementations are responsible for providing cache invalidation,
/// if necessary.
///
class HdContainerDataSource : public HdDataSourceBase
{
public:
HD_DECLARE_DATASOURCE_ABSTRACT(HdContainerDataSource);
/// Returns \c true if the container has a child datasource of the given
/// name, in which case \p Get(name) is expected to be non-null. This call
/// is expected to be threadsafe.
virtual bool Has(const TfToken &name) = 0;
/// Returns the list of names for which \p Get(...) is expected to return
/// a non-null value. This call is expected to be threadsafe.
virtual TfTokenVector GetNames() = 0;
/// Returns the child datasource of the given name. This call is expected
/// to be threadsafe.
virtual HdDataSourceBaseHandle Get(const TfToken &name) = 0;
/// A convenience function: given \p container, return the descendant
/// identified by \p locator, which may be at any depth. Returns
/// \p container itself on an empty locator, or null if \p locator doesn't
/// identify a valid descendant.
HD_API
static HdDataSourceBaseHandle Get(
const Handle &container,
const HdDataSourceLocator &locator);
};
HD_DECLARE_DATASOURCE_HANDLES(HdContainerDataSource);
/// \class HdVectorDataSource
///
/// A datasource representing indexed data. This should be used when a scene
/// index is expected to manipulate the indexing; for array-valued data, a
/// \p HdSampledDataSource can be used instead. Note that implementations are
/// responsible for providing cache invalidation, if necessary.
///
class HdVectorDataSource : public HdDataSourceBase
{
public:
HD_DECLARE_DATASOURCE_ABSTRACT(HdVectorDataSource);
/// Return the number of elements in this datasource. This call is
/// expected to be threadsafe.
virtual size_t GetNumElements() = 0;
/// Return the element at position \p element in this datasource. This
/// is expected to return non-null for the range [0, \p numElements).
/// This call is expected to be threadsafe.
virtual HdDataSourceBaseHandle GetElement(size_t element) = 0;
};
HD_DECLARE_DATASOURCE_HANDLES(HdVectorDataSource);
/// \class HdSampledDataSource
///
/// A datasource representing time-sampled values. Note that implementations
/// are responsible for providing cache invalidation, if necessary.
///
class HdSampledDataSource : public HdDataSourceBase
{
public:
HD_DECLARE_DATASOURCE_ABSTRACT(HdSampledDataSource);
using Time = float;
/// Returns the value of this data source at frame-relative time
/// \p shutterOffset. The caller does not track the frame; the scene
/// index producing this datasource is responsible for that, if applicable.
/// Note that, although this call returns a VtValue for each shutter
/// offset, the type of the held value is expected to be the same across
/// all shutter offsets. This call is expected to be threadsafe.
virtual VtValue GetValue(Time shutterOffset) = 0;
/// Given a shutter window of interest (\p startTime and \p endTime
/// relative to the current frame), return a list of sample times for the
/// caller to query with GetValue such that the caller can reconstruct the
/// signal over the shutter window. For a sample-based attribute, this
/// might be a list of times when samples are defined. For a procedural
/// scene, this might be a generated distribution. Note that the returned
/// samples don't need to be within \p startTime and \p endTime; if
/// a boundary sample is outside of the window, implementers can return it,
/// and callers should expect it and interpolate to \p startTime or
/// \p endTime accordingly. If this call returns \p true, the caller is
/// expected to pass the list of \p outSampleTimes to \p GetValue. If this
/// call returns \p false, this value is uniform across the shutter window
/// and the caller should call \p GetValue(0) to get that uniform value.
virtual bool GetContributingSampleTimesForInterval(
Time startTime,
Time endTime,
std::vector<Time> * outSampleTimes) = 0;
};
HD_DECLARE_DATASOURCE_HANDLES(HdSampledDataSource);
/// \class HdTypedSampledDataSource
///
/// A datasource representing a concretely-typed sampled value.
///
template <typename T>
class HdTypedSampledDataSource : public HdSampledDataSource
{
public:
HD_DECLARE_DATASOURCE_ABSTRACT(HdTypedSampledDataSource<T>);
using Type = T;
/// Returns the value of this data source at frame-relative time
/// \p shutterOffset, as type \p T.
virtual T GetTypedValue(Time shutterOffset) = 0;
};
/// \class HdBlockDataSource
///
/// A datasource representing the absence of a datasource. If a container has
/// a child datasource which is a block datasource, that's equivalent to that
/// child being null. This type is useful when composing containers, where a
/// block might shadow sampled data, and sampled data might shadow nullptr.
///
class HdBlockDataSource : public HdDataSourceBase
{
public:
HD_DECLARE_DATASOURCE(HdBlockDataSource);
HdBlockDataSource(){}
};
HD_DECLARE_DATASOURCE_HANDLES(HdBlockDataSource);
// Utilities //////////////////////////////////////////////////////////////////
/// Print a datasource to a stream, for debugging/testing.
void HdDebugPrintDataSource(
std::ostream &,
HdDataSourceBaseHandle,
int indentLevel = 0);
/// Print a datasource to stdout, for debugging/testing
void HdDebugPrintDataSource(HdDataSourceBaseHandle, int indentLevel = 0);
PXR_NAMESPACE_CLOSE_SCOPE
#endif // PXR_IMAGING_HD_DATASOURCE_H
@@ -1,136 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_IMAGING_HD_DATA_SOURCE_LEGACY_PRIM_H
#define PXR_IMAGING_HD_DATA_SOURCE_LEGACY_PRIM_H
#include "pxr/imaging/hd/sceneIndex.h"
#include "pxr/imaging/hd/api.h"
#include "pxr/base/tf/staticTokens.h"
PXR_NAMESPACE_OPEN_SCOPE
class HdSceneDelegate;
class HdExtComputationContext;
#define HD_LEGACY_PRIMTYPE_TOKENS \
/* Bprims */ \
(openvdbAsset) \
(field3dAsset)
TF_DECLARE_PUBLIC_TOKENS(HdLegacyPrimTypeTokens, HD_API,
HD_LEGACY_PRIMTYPE_TOKENS);
/// \class HdExtComputationCallbackDataSource
///
/// This is a data source which holds a legacy ext computation. It is used
/// only during emulation of legacy scene delegates but is exposed here as it
/// is used by HdSceneIndexAdapterSceneDelegate for emulation of legacy
/// render delegates.
///
class HdExtComputationCallbackDataSource : public HdDataSourceBase
{
public:
HD_DECLARE_DATASOURCE(HdExtComputationCallbackDataSource);
HdExtComputationCallbackDataSource(
const SdfPath &id, HdSceneDelegate *sceneDelegate)
: _id(id), _sceneDelegate(sceneDelegate) {}
void Invoke(HdExtComputationContext *context);
private:
SdfPath _id;
HdSceneDelegate *_sceneDelegate;
};
HD_DECLARE_DATASOURCE_HANDLES(HdExtComputationCallbackDataSource);
/// \class HdDataSourceLegacyPrim
///
/// This is an HdContainerDataSource which represents a prim-level data source
/// for adapting HdSceneDelegate calls into the forms defined by HdSchemas
/// during emulation of legacy scene delegates.
///
class HdDataSourceLegacyPrim : public HdContainerDataSource
{
public:
HD_DECLARE_DATASOURCE(HdDataSourceLegacyPrim);
bool Has(const TfToken &name) override;
TfTokenVector GetNames() override;
HdDataSourceBaseHandle Get(const TfToken &name) override;
/// This clears internal cached values and is currently called only by
/// HdLegacyPrimSceneIndex in response to its own DirtyPrims method
void PrimDirtied(const HdDataSourceLocatorSet &locators);
/// Return which locators PrimDirtied will respond to...
static const HdDataSourceLocatorSet &GetCachedLocators();
private:
HdDataSourceLegacyPrim(
SdfPath id,
TfToken type,
HdSceneDelegate *sceneDelegate);
HdDataSourceBaseHandle _GetPrimvarsDataSource();
HdDataSourceBaseHandle _GetExtComputationPrimvarsDataSource();
HdDataSourceBaseHandle _GetMaterialBindingDataSource();
HdDataSourceBaseHandle _GetXformDataSource();
HdDataSourceBaseHandle _GetMaterialDataSource();
HdDataSourceBaseHandle _GetDisplayStyleDataSource();
HdDataSourceBaseHandle _GetInstancedByDataSource();
HdDataSourceBaseHandle _GetInstancerTopologyDataSource();
HdDataSourceBaseHandle _GetVolumeFieldBindingDataSource();
HdDataSourceBaseHandle _GetCoordSysBindingDataSource();
HdDataSourceBaseHandle _GetVisibilityDataSource();
HdDataSourceBaseHandle _GetPurposeDataSource();
HdDataSourceBaseHandle _GetExtentDataSource();
HdDataSourceBaseHandle _GetCategoriesDataSource();
HdDataSourceBaseHandle _GetInstanceCategoriesDataSource();
private:
SdfPath _id;
TfToken _type;
HdSceneDelegate *_sceneDelegate;
std::atomic_bool _primvarsBuilt;
bool _extComputationPrimvarsBuilt : 1;
HdContainerDataSourceAtomicHandle _primvars;
HdContainerDataSourceHandle _extComputationPrimvars;
// Note: _instancerTopology needs to be an atomic handle, since
// some downstream customers of it (render index sync, hdSt instancer sync)
// are not threadsafe.
HdContainerDataSourceAtomicHandle _instancerTopology;
};
HD_DECLARE_DATASOURCE_HANDLES(HdDataSourceLegacyPrim);
bool HdLegacyPrimTypeIsVolumeField(TfToken const &primType);
PXR_NAMESPACE_CLOSE_SCOPE
#endif
-285
View File
@@ -1,285 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_IMAGING_HD_DATASOURCELOCATOR_H
#define PXR_IMAGING_HD_DATASOURCELOCATOR_H
#include "pxr/pxr.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/smallVector.h"
#include "pxr/base/tf/hash.h"
#include "pxr/imaging/hd/api.h"
PXR_NAMESPACE_OPEN_SCOPE
/// \class HdDataSourceLocator
///
/// Represents an object that can identify the location of a data source.
/// Data Source Locators are meant to be short lists of tokens that, taken
/// together, can represent the location of a given data source.
///
class HdDataSourceLocator
{
public:
/// Returns a common empty locator.
///
/// This is an often needed locator and is quicker to get this way rather
/// than creating your own empty one.
HD_API
static const HdDataSourceLocator &EmptyLocator();
/// Creates an empty locator.
///
/// If all you need is an empty locator, see EmptyLocator().
///
HD_API
HdDataSourceLocator();
/// The following constructors take a number of tokens and build a locator
/// with the apporpriate number of tokens in the given order.
///
/// These are convenience constructors for commonly used patterns. Note
/// that we generally expect a very small number of entities in a locator,
/// which is why we haven't gone with a more general N-way solution.
///
HD_API
explicit HdDataSourceLocator(const TfToken &t1);
HD_API
HdDataSourceLocator(const TfToken &t1, const TfToken &t2);
HD_API
HdDataSourceLocator(const TfToken &t1, const TfToken &t2,
const TfToken &t3);
HD_API
HdDataSourceLocator(const TfToken &t1, const TfToken &t2, const TfToken &t3,
const TfToken &t4);
HD_API
HdDataSourceLocator(const TfToken &t1, const TfToken &t2, const TfToken &t3,
const TfToken &t4, const TfToken &t5);
HD_API
HdDataSourceLocator(const TfToken &t1, const TfToken &t2, const TfToken &t3,
const TfToken &t4, const TfToken &t5,
const TfToken &t6);
/// Builds a data source locator from the \p tokens array of the given
/// \p count.
///
HD_API
HdDataSourceLocator(size_t count, const TfToken *tokens);
/// Copy constructor
HdDataSourceLocator(const HdDataSourceLocator &rhs) = default;
/// Returns the number of elements (tokens) in this data source.
HD_API
size_t GetElementCount() const;
/// Returns the element (token) at index \p i.
///
/// If \p i is out of bounds, the behavior is undefined.
///
HD_API
const TfToken &GetElement(size_t i) const;
/// Returns the first element, or empty token if none.
HD_API
const TfToken &GetFirstElement() const;
/// Returns the last element, or empty token if none.
HD_API
const TfToken &GetLastElement() const;
/// Returns a copy of this data source locator with the last element
/// replaced by the one given by \p name. If this data source locator is
/// empty an identical copy is returned.
///
HD_API
HdDataSourceLocator ReplaceLastElement(const TfToken &name) const;
/// Returns a copy of this data source locator with the last element
/// removed.
///
HD_API
HdDataSourceLocator RemoveLastElement() const;
/// Returns a copy of this data source locator with the first element
/// removed.
///
HD_API
HdDataSourceLocator RemoveFirstElement() const;
/// Appends \p name to this data source locator.
HD_API
HdDataSourceLocator Append(const TfToken &name) const;
/// Appends all of the elements in \p locator to this data source locator.
HD_API
HdDataSourceLocator Append(const HdDataSourceLocator &locator) const;
/// Prepends \p name to this data source locator.
HD_API
HdDataSourceLocator Prepend(const TfToken &name) const;
/// Prepends all of the elements in \p locator to this data source locator.
HD_API
HdDataSourceLocator Prepend(const HdDataSourceLocator &locator) const;
/// Returns \c true if this data source locator has \p prefix as a prefix.
HD_API
bool HasPrefix(const HdDataSourceLocator &prefix) const;
/// Returns a data source locator that represents the common prefix
/// between this data source and \p other.
///
HD_API
HdDataSourceLocator GetCommonPrefix(const HdDataSourceLocator &other) const;
/// Returns a copy of this data source locator with \p oldPrefix replaced
/// by \p newPrefix.
///
HD_API
HdDataSourceLocator ReplacePrefix(
const HdDataSourceLocator &oldPrefix,
const HdDataSourceLocator &newPrefix) const;
/// Returns \c true if either this or other are equal to or contain one
/// another
///
HD_API
bool Intersects(const HdDataSourceLocator &other) const;
inline bool operator==(const HdDataSourceLocator &rhs) const {
return _tokens == rhs._tokens;
}
inline bool operator!=(const HdDataSourceLocator &rhs) const {
return _tokens != rhs._tokens;
}
HD_API
bool operator<(const HdDataSourceLocator &rhs) const;
inline bool IsEmpty() const {
return _tokens.empty();
}
/// Returns a string representation of this data source locator with the
/// given \p delimiter inserted between each element.
///
HD_API
std::string GetString(const char *delimiter = "/") const;
template <class HashState>
friend void TfHashAppend(HashState &h, HdDataSourceLocator const &myObj) {
h.AppendContiguous(myObj._tokens.data(), myObj._tokens.size());
}
inline size_t Hash() const;
private:
using _TokenVector = TfSmallVector<TfToken, 6>;
_TokenVector _tokens;
};
inline size_t
HdDataSourceLocator::Hash() const
{
return TfHash()(*this);
}
//-----------------------------------------------------------------------------
///
/// \class HdDataSourceLocatorSet
///
/// Represents a set of data source locators.
///
class HdDataSourceLocatorSet
{
private:
using _Locators = TfSmallVector<HdDataSourceLocator, 8>;
public:
using const_iterator = typename _Locators::const_iterator;
explicit HdDataSourceLocatorSet() {}
HdDataSourceLocatorSet(const HdDataSourceLocator &locator);
// Initializer list constructor.
HdDataSourceLocatorSet(
const std::initializer_list<const HdDataSourceLocator> &l);
/// Copy Ctor
HdDataSourceLocatorSet(const HdDataSourceLocatorSet &rhs) = default;
/// Move Ctor.
HdDataSourceLocatorSet(HdDataSourceLocatorSet &&rhs) = default;
/// Move assignment operator.
HdDataSourceLocatorSet &operator=(HdDataSourceLocatorSet &&rhs) = default;
/// Copy assignment operator.
HdDataSourceLocatorSet &operator=(const HdDataSourceLocatorSet &rhs)
= default;
HD_API
void insert(const HdDataSourceLocator &locator);
HD_API
void insert(const HdDataSourceLocatorSet &locatorSet);
/// append() is semantically equivalent to insert(), but works much faster
/// if \p locator would be added to the end of the set, lexicographically.
HD_API
void append(const HdDataSourceLocator &locator);
bool operator==(const HdDataSourceLocatorSet &rhs) const {
return _locators == rhs._locators;
}
bool operator!=(const HdDataSourceLocatorSet &rhs) const {
return !(*this == rhs);
}
HD_API
const_iterator begin() const;
HD_API
const_iterator end() const;
HD_API
bool Intersects(const HdDataSourceLocator &locator) const;
HD_API
bool Intersects(const HdDataSourceLocatorSet &locatorSet) const;
HD_API
bool IsEmpty() const;
private:
void _InsertAndDeleteSuffixes(_Locators::iterator *position,
const HdDataSourceLocator &locator);
_Locators _locators;
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif // PXR_IMAGING_HD_DATASOURCELOCATOR_H
-120
View File
@@ -1,120 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_IMAGING_HD_DATASOURCETYPEDEFS_H
#define PXR_IMAGING_HD_DATASOURCETYPEDEFS_H
#include "pxr/pxr.h"
#include "pxr/imaging/hd/dataSource.h"
#include "pxr/imaging/hd/dataSourceLocator.h"
#include "pxr/imaging/hd/types.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/gf/vec2f.h"
#include "pxr/base/tf/staticTokens.h"
#include "pxr/base/vt/array.h"
#include "pxr/usd/sdf/path.h"
#include "pxr/usd/sdf/assetPath.h"
PXR_NAMESPACE_OPEN_SCOPE
// Numeric
using HdIntDataSource = HdTypedSampledDataSource<int>;
using HdIntDataSourceHandle = HdIntDataSource::Handle;
using HdIntArrayDataSource = HdTypedSampledDataSource<VtArray<int>>;
using HdIntArrayDataSourceHandle = HdIntArrayDataSource::Handle;
using HdSizetDataSource = HdTypedSampledDataSource<size_t>;
using HdSizetDataSourceHandle = HdSizetDataSource::Handle;
using HdFloatDataSource = HdTypedSampledDataSource<float>;
using HdFloatDataSourceHandle = HdFloatDataSource::Handle;
using HdFloatArrayDataSource = HdTypedSampledDataSource<VtArray<float>>;
using HdFloatArrayDataSourceHandle = HdFloatArrayDataSource::Handle;
// Bool
using HdBoolDataSource = HdTypedSampledDataSource<bool>;
using HdBoolDataSourceHandle = HdBoolDataSource::Handle;
using HdBoolArrayDataSource = HdTypedSampledDataSource<VtArray<bool>>;
using HdBoolArrayDataSourceHandle = HdBoolArrayDataSource::Handle;
// String
using HdTokenDataSource = HdTypedSampledDataSource<TfToken>;
using HdTokenDataSourceHandle = HdTokenDataSource::Handle;
using HdTokenArrayDataSource = HdTypedSampledDataSource<VtArray<TfToken>>;
using HdTokenArrayDataSourceHandle = HdTokenArrayDataSource::Handle;
using HdPathDataSource = HdTypedSampledDataSource<SdfPath>;
using HdPathDataSourceHandle = HdPathDataSource::Handle;
using HdPathArrayDataSource = HdTypedSampledDataSource<VtArray<SdfPath>>;
using HdPathArrayDataSourceHandle = HdPathArrayDataSource::Handle;
using HdStringDataSource = HdTypedSampledDataSource<std::string>;
using HdStringDataSourceHandle = HdStringDataSource::Handle;
using HdAssetPathDataSource = HdTypedSampledDataSource<SdfAssetPath>;
using HdAssetPathDataSourceHandle = HdAssetPathDataSource::Handle;
// Linear algebra
using HdVec2iDataSource = HdTypedSampledDataSource<GfVec2i>;
using HdVec2iDataSourceHandle = HdVec2iDataSource::Handle;
using HdVec2fDataSource = HdTypedSampledDataSource<GfVec2f>;
using HdVec2fDataSourceHandle = HdVec2fDataSource::Handle;
using HdVec2fArrayDataSource = HdTypedSampledDataSource<VtArray<GfVec2f>>;
using HdVec2fArrayDataSourceHandle = HdVec2fArrayDataSource::Handle;
using HdVec3iDataSource = HdTypedSampledDataSource<GfVec3i>;
using HdVec3iDataSourceHandle = HdVec3iDataSource::Handle;
using HdVec3fDataSource = HdTypedSampledDataSource<GfVec3f>;
using HdVec3fDataSourceHandle = HdVec3fDataSource::Handle;
using HdVec3fArrayDataSource = HdTypedSampledDataSource<VtArray<GfVec3f>>;
using HdVec3fArrayDataSourceHandle = HdVec3fArrayDataSource::Handle;
using HdVec4iDataSource = HdTypedSampledDataSource<GfVec4i>;
using HdVec4iDataSourceHandle = HdVec4iDataSource::Handle;
using HdVec3dDataSource = HdTypedSampledDataSource<GfVec3d>;
using HdVec3dDataSourceHandle = HdVec3dDataSource::Handle;
using HdVec3dArrayDataSource = HdTypedSampledDataSource<VtArray<GfVec3d>>;
using HdVec3dArrayDataSourceHandle = HdVec3dArrayDataSource::Handle;
using HdMatrixDataSource = HdTypedSampledDataSource<GfMatrix4d>;
using HdMatrixDataSourceHandle = HdMatrixDataSource::Handle;
using HdMatrixArrayDataSource = HdTypedSampledDataSource<VtArray<GfMatrix4d>>;
using HdMatrixArrayDataSourceHandle = HdMatrixArrayDataSource::Handle;
// Locator
using HdLocatorDataSource = HdTypedSampledDataSource<HdDataSourceLocator>;
using HdLocatorDataSourceHandle = HdLocatorDataSource::Handle;
// Enum
using HdFormatDataSource = HdTypedSampledDataSource<HdFormat>;
using HdFormatDataSourceHandle = HdFormatDataSource::Handle;
using HdTupleTypeDataSource = HdTypedSampledDataSource<HdTupleType>;
using HdTupleTypeDataSourceHandle = HdTupleTypeDataSource::Handle;
PXR_NAMESPACE_CLOSE_SCOPE
#endif // PXR_IMAGING_HD_DATASOURCETYPEDEFS_H
-1
View File
@@ -64,7 +64,6 @@ TF_DEBUG_CODES(
HD_SHARED_EXT_COMPUTATION_DATA, HD_SHARED_EXT_COMPUTATION_DATA,
HD_SPRIM_ADDED, HD_SPRIM_ADDED,
HD_SPRIM_REMOVED, HD_SPRIM_REMOVED,
HD_SYNC_ALL,
HD_TASK_ADDED, HD_TASK_ADDED,
HD_TASK_REMOVED, HD_TASK_REMOVED,
HD_VARYING_STATE HD_VARYING_STATE
@@ -1,78 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_DEPENDENCIES_SCHEMA_H
#define PXR_IMAGING_HD_DEPENDENCIES_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/dependencySchema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDDEPENDENCIES_SCHEMA_TOKENS \
(__dependencies) \
TF_DECLARE_PUBLIC_TOKENS(HdDependenciesSchemaTokens, HD_API,
HDDEPENDENCIES_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdDependenciesSchema : public HdSchema
{
public:
HdDependenciesSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
using EntryPair = std::pair<TfToken, HdDependencySchema>;
using EntryVector = TfSmallVector<EntryPair, 8>;
EntryVector GetEntries();
/// Retrieves a container data source with the schema's default name token
/// "__dependencies" from the parent container and constructs a
/// HdDependenciesSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdDependenciesSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
-112
View File
@@ -1,112 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_DEPENDENCY_SCHEMA_H
#define PXR_IMAGING_HD_DEPENDENCY_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDDEPENDENCY_SCHEMA_TOKENS \
(dependedOnPrimPath) \
(dependedOnDataSourceLocator) \
(affectedDataSourceLocator) \
TF_DECLARE_PUBLIC_TOKENS(HdDependencySchemaTokens, HD_API,
HDDEPENDENCY_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdDependencySchema : public HdSchema
{
public:
HdDependencySchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdPathDataSourceHandle GetDependedOnPrimPath();
HD_API
HdLocatorDataSourceHandle GetDependedOnDataSourceLocator();
HD_API
HdLocatorDataSourceHandle GetAffectedDataSourceLocator();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdPathDataSourceHandle &dependedOnPrimPath,
const HdLocatorDataSourceHandle &dependedOnDataSourceLocator,
const HdLocatorDataSourceHandle &affectedDataSourceLocator
);
/// \class HdDependencySchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetDependedOnPrimPath(
const HdPathDataSourceHandle &dependedOnPrimPath);
HD_API
Builder &SetDependedOnDataSourceLocator(
const HdLocatorDataSourceHandle &dependedOnDataSourceLocator);
HD_API
Builder &SetAffectedDataSourceLocator(
const HdLocatorDataSourceHandle &affectedDataSourceLocator);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdPathDataSourceHandle _dependedOnPrimPath;
HdLocatorDataSourceHandle _dependedOnDataSourceLocator;
HdLocatorDataSourceHandle _affectedDataSourceLocator;
};
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,64 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_IMAGING_HD_DIRTY_BITS_TRANSLATOR_H
#define PXR_IMAGING_HD_DIRTY_BITS_TRANSLATOR_H
#include "pxr/pxr.h"
#include "pxr/base/tf/token.h"
#include "pxr/imaging/hd/dataSourceLocator.h"
#include "pxr/imaging/hd/types.h"
PXR_NAMESPACE_OPEN_SCOPE
/// \class HdDirtyBitsTranslator
///
/// A set of optimized functions for translating between dirty bits and
/// datasource locators for different prim types.
class HdDirtyBitsTranslator
{
public:
// Dirty bits to locators.
static void RprimDirtyBitsToLocatorSet(TfToken const& primType,
const HdDirtyBits bits, HdDataSourceLocatorSet *set);
static void SprimDirtyBitsToLocatorSet(TfToken const& primType,
const HdDirtyBits bits, HdDataSourceLocatorSet *set);
static void BprimDirtyBitsToLocatorSet(TfToken const& primType,
const HdDirtyBits bits, HdDataSourceLocatorSet *set);
static void InstancerDirtyBitsToLocatorSet(TfToken const& primType,
const HdDirtyBits bits, HdDataSourceLocatorSet *set);
// Locators to dirty bits.
static HdDirtyBits RprimLocatorSetToDirtyBits(TfToken const& primType,
HdDataSourceLocatorSet const& set);
static HdDirtyBits SprimLocatorSetToDirtyBits(TfToken const& primType,
HdDataSourceLocatorSet const& set);
static HdDirtyBits BprimLocatorSetToDirtyBits(TfToken const& primType,
HdDataSourceLocatorSet const& set);
static HdDirtyBits InstancerLocatorSetToDirtyBits(TfToken const& primType,
HdDataSourceLocatorSet const& set);
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif // PXR_IMAGING_HD_DIRTY_BITS_TRANSLATOR_H
+22 -38
View File
@@ -27,7 +27,6 @@
#include "pxr/pxr.h" #include "pxr/pxr.h"
#include "pxr/imaging/hd/api.h" #include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/version.h" #include "pxr/imaging/hd/version.h"
#include "pxr/imaging/hd/repr.h"
#include "pxr/imaging/hd/rprimCollection.h" #include "pxr/imaging/hd/rprimCollection.h"
#include "pxr/imaging/hd/types.h" #include "pxr/imaging/hd/types.h"
@@ -36,14 +35,14 @@
PXR_NAMESPACE_OPEN_SCOPE PXR_NAMESPACE_OPEN_SCOPE
class HdRenderIndex; class HdRenderIndex;
class HdChangeTracker;
using HdReprSelectorVector = std::vector<HdReprSelector>; using HdDirtyListSharedPtr = std::shared_ptr<class HdDirtyList>;
/// \class HdDirtyList /// \class HdDirtyList
/// ///
/// Used for faster iteration of dirty Rprims by the render index. /// Used for faster iteration of dirty rprims, filtered by mask.
/// ///
/// GetDirtyRprims() implicitly refreshes and caches the list if needed. /// GetDirtyRprims implicitly refresh and cache the list if needed.
/// The returning prims list will be used for sync. /// The returning prims list will be used for sync.
/// ///
/// DirtyList construction can expensive. We have 3 layer /// DirtyList construction can expensive. We have 3 layer
@@ -60,11 +59,10 @@ using HdReprSelectorVector = std::vector<HdReprSelector>;
/// while the remaining prims (could be huge -- for example a large set) /// while the remaining prims (could be huge -- for example a large set)
/// are static. /// are static.
/// Those animating prims can be distinguished by the Varying bit. The Varying /// Those animating prims can be distinguished by the Varying bit. The Varying
/// bit is set on a prim when any dirty bit is set, and stays even after /// bit is set on a prim when any dirty bit is set, and stays even after clean
/// cleaning the scene dirty bits, until HdChangeTracker::ResetVaryingState /// the dirty bit until HdChangeTracker::ResetVaryingState clears out.
/// clears it out.
/// ///
/// DirtyList caches those prims in a list at the first time (described in 3), /// DirtyList caches those prims in a list at the first time (described in 3.),
/// and returns the list for the subsequent queries. Since that list is /// and returns the list for the subsequent queries. Since that list is
/// conservatively picked by the Varying bit instead of the actual DirtyBits /// conservatively picked by the Varying bit instead of the actual DirtyBits
/// needed for various reprs, consumer of DirtyList needs to check the /// needed for various reprs, consumer of DirtyList needs to check the
@@ -103,52 +101,38 @@ using HdReprSelectorVector = std::vector<HdReprSelector>;
class HdDirtyList { class HdDirtyList {
public: public:
HD_API HD_API
explicit HdDirtyList(HdRenderIndex &index); HdDirtyList(HdRprimCollection const& collection,
HdRenderIndex &index);
HD_API
~HdDirtyList();
/// Returns a reference of dirty rprim ids. /// Returns a reference of dirty ids.
/// If the change tracker hasn't changed any state since the last time /// If the change tracker hasn't changed any state since the last time
/// GetDirtyRprims gets called, and if the tracked filtering parameters /// GetDirtyRprims gets called, it simply returns an empty list.
/// (set via UpdateRenderTagsAndReprSelectors) are the same, it simply
/// returns an empty list.
/// Otherwise depending on what changed, it will return a list of /// Otherwise depending on what changed, it will return a list of
/// Rprim ids to be synced. /// prims to be synced.
/// Therefore, it is expected that GetDirtyRprims is called _only once_ /// Therefore, it is expected that GetDirtyRprims is called only once
/// per render index sync. /// per render index sync.
HD_API HD_API
SdfPathVector const& GetDirtyRprims(); SdfPathVector const& GetDirtyRprims();
/// Updates the tracked filtering parameters. /// Update the tracking state for this HdDirtyList with the new collection,
/// This typically comes from the tasks submitted to HdEngine::Execute. /// if the update cannot be applied, return false.
HD_API HD_API
void UpdateRenderTagsAndReprSelectors( bool ApplyEdit(HdRprimCollection const& newCollection);
TfTokenVector const &tags, HdReprSelectorVector const &reprs);
/// Sets the flag to prune to dirty list to just the varying Rprims on
/// the next call to GetDirtyRprims.
void PruneToVaryingRprims() {
_pruneDirtyList = true;
}
private: private:
HdChangeTracker & _GetChangeTracker() const; HdRprimCollection _collection;
void _UpdateDirtyIdsIfNeeded();
// Note: Can't use a const ref to the renderIndex because
// HdRenderIndex::GetRprimIds() isn't a const member fn.
HdRenderIndex &_renderIndex;
TfTokenVector _trackedRenderTags;
HdReprSelectorVector _trackedReprs;
SdfPathVector _dirtyIds; SdfPathVector _dirtyIds;
HdRenderIndex &_renderIndex;
unsigned int _sceneStateVersion; unsigned int _sceneStateVersion;
unsigned int _rprimIndexVersion; unsigned int _rprimIndexVersion;
unsigned int _rprimRenderTagVersion; unsigned int _renderTagVersion;
unsigned int _varyingStateVersion; unsigned int _varyingStateVersion;
bool _rebuildDirtyList;
bool _pruneDirtyList;
}; };
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_CLOSE_SCOPE
#endif // PXR_IMAGING_HD_DIRTY_LIST_H #endif // PXR_IMAGING_HD_DIRTY_LIST_H
+1 -16
View File
@@ -179,16 +179,7 @@ public:
HD_API HD_API
TfToken const& GetMaterialTag() const { TfToken const& GetMaterialTag() const {
return _materialTag; return _sharedData->materialTag;
}
HD_API
void SetMaterialTag(TfToken const &materialTag) {
_materialTag = materialTag;
}
TopologyToPrimvarVector const &GetFvarTopologyToPrimvarVector() const {
return _sharedData->fvarTopologyToPrimvarVector;
} }
/// Returns true if the drawItem has instancer. /// Returns true if the drawItem has instancer.
@@ -255,12 +246,6 @@ private:
// pointer to shared data across reprs, owned by rprim: // pointer to shared data across reprs, owned by rprim:
// bufferArrayRanges, bounds, visibility // bufferArrayRanges, bounds, visibility
HdRprimSharedData const *_sharedData; HdRprimSharedData const *_sharedData;
/// The materialTag allows the draw items of rprims to be organized into
/// different collections based on properties of the prim's material.
/// E.g. A renderer may wish to organize opaque and translucent prims
/// into different collections so they can be rendered seperately.
TfToken _materialTag;
}; };
@@ -1,112 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_EXT_COMPUTATION_INPUT_COMPUTATION_SCHEMA_H
#define PXR_IMAGING_HD_EXT_COMPUTATION_INPUT_COMPUTATION_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDEXTCOMPUTATIONINPUTCOMPUTATION_SCHEMA_TOKENS \
(name) \
(sourceComputation) \
(sourceComputationOutputName) \
TF_DECLARE_PUBLIC_TOKENS(HdExtComputationInputComputationSchemaTokens, HD_API,
HDEXTCOMPUTATIONINPUTCOMPUTATION_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdExtComputationInputComputationSchema : public HdSchema
{
public:
HdExtComputationInputComputationSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdTokenDataSourceHandle GetName();
HD_API
HdPathDataSourceHandle GetSourceComputation();
HD_API
HdTokenDataSourceHandle GetSourceComputationOutputName();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdTokenDataSourceHandle &name,
const HdPathDataSourceHandle &sourceComputation,
const HdTokenDataSourceHandle &sourceComputationOutputName
);
/// \class HdExtComputationInputComputationSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetName(
const HdTokenDataSourceHandle &name);
HD_API
Builder &SetSourceComputation(
const HdPathDataSourceHandle &sourceComputation);
HD_API
Builder &SetSourceComputationOutputName(
const HdTokenDataSourceHandle &sourceComputationOutputName);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdTokenDataSourceHandle _name;
HdPathDataSourceHandle _sourceComputation;
HdTokenDataSourceHandle _sourceComputationOutputName;
};
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,104 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_EXT_COMPUTATION_OUTPUT_SCHEMA_H
#define PXR_IMAGING_HD_EXT_COMPUTATION_OUTPUT_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDEXTCOMPUTATIONOUTPUT_SCHEMA_TOKENS \
(name) \
(valueType) \
TF_DECLARE_PUBLIC_TOKENS(HdExtComputationOutputSchemaTokens, HD_API,
HDEXTCOMPUTATIONOUTPUT_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdExtComputationOutputSchema : public HdSchema
{
public:
HdExtComputationOutputSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdTokenDataSourceHandle GetName();
HD_API
HdTupleTypeDataSourceHandle GetValueType();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdTokenDataSourceHandle &name,
const HdTupleTypeDataSourceHandle &valueType
);
/// \class HdExtComputationOutputSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetName(
const HdTokenDataSourceHandle &name);
HD_API
Builder &SetValueType(
const HdTupleTypeDataSourceHandle &valueType);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdTokenDataSourceHandle _name;
HdTupleTypeDataSourceHandle _valueType;
};
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,140 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_H
#define PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVAR_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/primvarSchema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDEXTCOMPUTATIONPRIMVAR_SCHEMA_TOKENS \
(interpolation) \
(role) \
(sourceComputation) \
(sourceComputationOutputName) \
(valueType) \
TF_DECLARE_PUBLIC_TOKENS(HdExtComputationPrimvarSchemaTokens, HD_API,
HDEXTCOMPUTATIONPRIMVAR_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdExtComputationPrimvarSchema : public HdSchema
{
public:
HdExtComputationPrimvarSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdTokenDataSourceHandle GetInterpolation();
HD_API
HdTokenDataSourceHandle GetRole();
HD_API
HdPathDataSourceHandle GetSourceComputation();
HD_API
HdTokenDataSourceHandle GetSourceComputationOutputName();
HD_API
HdTupleTypeDataSourceHandle GetValueType();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdTokenDataSourceHandle &interpolation,
const HdTokenDataSourceHandle &role,
const HdPathDataSourceHandle &sourceComputation,
const HdTokenDataSourceHandle &sourceComputationOutputName,
const HdTupleTypeDataSourceHandle &valueType
);
/// \class HdExtComputationPrimvarSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetInterpolation(
const HdTokenDataSourceHandle &interpolation);
HD_API
Builder &SetRole(
const HdTokenDataSourceHandle &role);
HD_API
Builder &SetSourceComputation(
const HdPathDataSourceHandle &sourceComputation);
HD_API
Builder &SetSourceComputationOutputName(
const HdTokenDataSourceHandle &sourceComputationOutputName);
HD_API
Builder &SetValueType(
const HdTupleTypeDataSourceHandle &valueType);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdTokenDataSourceHandle _interpolation;
HdTokenDataSourceHandle _role;
HdPathDataSourceHandle _sourceComputation;
HdTokenDataSourceHandle _sourceComputationOutputName;
HdTupleTypeDataSourceHandle _valueType;
};
// these return statically allocated instances for the common cases.
static HdTokenDataSourceHandle BuildInterpolationDataSource(
TfToken interpolation) {
return HdPrimvarSchema::BuildInterpolationDataSource(interpolation);
}
static HdTokenDataSourceHandle BuildRoleDataSource(TfToken role) {
return HdPrimvarSchema::BuildRoleDataSource(role);
}
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,76 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVARS_SCHEMA_H
#define PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVARS_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/extComputationPrimvarSchema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDEXTCOMPUTATIONPRIMVARS_SCHEMA_TOKENS \
(extComputationPrimvars) \
TF_DECLARE_PUBLIC_TOKENS(HdExtComputationPrimvarsSchemaTokens, HD_API,
HDEXTCOMPUTATIONPRIMVARS_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdExtComputationPrimvarsSchema : public HdSchema
{
public:
HdExtComputationPrimvarsSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
TfTokenVector GetExtComputationPrimvarNames();
HdExtComputationPrimvarSchema GetPrimvar(const TfToken &name);
/// Retrieves a container data source with the schema's default name token
/// "extComputationPrimvars" from the parent container and constructs a
/// HdExtComputationPrimvarsSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdExtComputationPrimvarsSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,202 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_EXT_COMPUTATION_SCHEMA_H
#define PXR_IMAGING_HD_EXT_COMPUTATION_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDEXTCOMPUTATION_SCHEMA_TOKENS \
(extComputation) \
(inputValues) \
(inputComputations) \
(outputs) \
(glslKernel) \
(cpuCallback) \
(dispatchCount) \
(elementCount) \
TF_DECLARE_PUBLIC_TOKENS(HdExtComputationSchemaTokens, HD_API,
HDEXTCOMPUTATION_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdExtComputationSchema : public HdSchema
{
public:
HdExtComputationSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdContainerDataSourceHandle GetInputValues();
HD_API
HdVectorDataSourceHandle GetInputComputations();
HD_API
HdVectorDataSourceHandle GetOutputs();
HD_API
HdStringDataSourceHandle GetGlslKernel();
HD_API
HdDataSourceBaseHandle GetCpuCallback();
HD_API
HdSizetDataSourceHandle GetDispatchCount();
HD_API
HdSizetDataSourceHandle GetElementCount();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdContainerDataSourceHandle &inputValues,
const HdVectorDataSourceHandle &inputComputations,
const HdVectorDataSourceHandle &outputs,
const HdStringDataSourceHandle &glslKernel,
const HdDataSourceBaseHandle &cpuCallback,
const HdSizetDataSourceHandle &dispatchCount,
const HdSizetDataSourceHandle &elementCount
);
/// \class HdExtComputationSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetInputValues(
const HdContainerDataSourceHandle &inputValues);
HD_API
Builder &SetInputComputations(
const HdVectorDataSourceHandle &inputComputations);
HD_API
Builder &SetOutputs(
const HdVectorDataSourceHandle &outputs);
HD_API
Builder &SetGlslKernel(
const HdStringDataSourceHandle &glslKernel);
HD_API
Builder &SetCpuCallback(
const HdDataSourceBaseHandle &cpuCallback);
HD_API
Builder &SetDispatchCount(
const HdSizetDataSourceHandle &dispatchCount);
HD_API
Builder &SetElementCount(
const HdSizetDataSourceHandle &elementCount);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdContainerDataSourceHandle _inputValues;
HdVectorDataSourceHandle _inputComputations;
HdVectorDataSourceHandle _outputs;
HdStringDataSourceHandle _glslKernel;
HdDataSourceBaseHandle _cpuCallback;
HdSizetDataSourceHandle _dispatchCount;
HdSizetDataSourceHandle _elementCount;
};
/// Retrieves a container data source with the schema's default name token
/// "extComputation" from the parent container and constructs a
/// HdExtComputationSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdExtComputationSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the inputvalues data source can be found.
/// This is often useful for checking intersection against the
/// HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
HD_API
static const HdDataSourceLocator &GetInputValuesLocator();
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the inputcomputations data source can be found.
/// This is often useful for checking intersection against the
/// HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
HD_API
static const HdDataSourceLocator &GetInputComputationsLocator();
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the outputs data source can be found.
/// This is often useful for checking intersection against the
/// HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
HD_API
static const HdDataSourceLocator &GetOutputsLocator();
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the dispatchcount data source can be found.
/// This is often useful for checking intersection against the
/// HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
HD_API
static const HdDataSourceLocator &GetDispatchCountLocator();
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the elementcount data source can be found.
/// This is often useful for checking intersection against the
/// HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
HD_API
static const HdDataSourceLocator &GetElementCountLocator();
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the glslkernel data source can be found.
/// This is often useful for checking intersection against the
/// HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
HD_API
static const HdDataSourceLocator &GetGlslKernelLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
-119
View File
@@ -1,119 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_EXTENT_SCHEMA_H
#define PXR_IMAGING_HD_EXTENT_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDEXTENT_SCHEMA_TOKENS \
(extent) \
(min) \
(max) \
TF_DECLARE_PUBLIC_TOKENS(HdExtentSchemaTokens, HD_API,
HDEXTENT_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdExtentSchema : public HdSchema
{
public:
HdExtentSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdVec3dDataSourceHandle GetMin();
HD_API
HdVec3dDataSourceHandle GetMax();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdVec3dDataSourceHandle &min,
const HdVec3dDataSourceHandle &max
);
/// \class HdExtentSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetMin(
const HdVec3dDataSourceHandle &min);
HD_API
Builder &SetMax(
const HdVec3dDataSourceHandle &max);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdVec3dDataSourceHandle _min;
HdVec3dDataSourceHandle _max;
};
/// Retrieves a container data source with the schema's default name token
/// "extent" from the parent container and constructs a
/// HdExtentSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdExtentSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
+1 -2
View File
@@ -34,8 +34,7 @@
PXR_NAMESPACE_OPEN_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define HD_FIELD_TOKENS \ #define HD_FIELD_TOKENS \
(filePath) \ (filePath)
(fieldName)
TF_DECLARE_PUBLIC_TOKENS(HdFieldTokens, HD_API, HD_FIELD_TOKENS); TF_DECLARE_PUBLIC_TOKENS(HdFieldTokens, HD_API, HD_FIELD_TOKENS);
@@ -1,127 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_IMAGING_HD_FILTERING_SCENE_INDEX_H
#define PXR_IMAGING_HD_FILTERING_SCENE_INDEX_H
#include "pxr/pxr.h"
#include <set>
#include <unordered_map>
#include "pxr/base/tf/declarePtrs.h"
#include "pxr/base/tf/singleton.h"
#include "pxr/usd/sdf/path.h"
#include "pxr/imaging/hd/dataSource.h"
#include "pxr/imaging/hd/dataSourceLocator.h"
#include "pxr/imaging/hd/sceneIndex.h"
PXR_NAMESPACE_OPEN_SCOPE
TF_DECLARE_WEAK_AND_REF_PTRS(HdFilteringSceneIndexBase);
///
/// \class HdFilteringSceneIndexBase
///
/// An abstract base class for scene indexes that have one or more input scene
/// indexes which serve as a basis for their own scene.
///
class HdFilteringSceneIndexBase : public HdSceneIndexBase
{
public:
virtual std::vector<HdSceneIndexBaseRefPtr> GetInputScenes() const = 0;
};
TF_DECLARE_WEAK_AND_REF_PTRS(HdSingleInputFilteringSceneIndexBase);
///
/// \class HdSingleInputFilteringSceneIndexBase
///
/// An abstract base class for a filtering scene index that observes a single
/// input scene index.
///
class HdSingleInputFilteringSceneIndexBase : public HdFilteringSceneIndexBase
{
public:
std::vector<HdSceneIndexBaseRefPtr> GetInputScenes() const final;
protected:
HdSingleInputFilteringSceneIndexBase(
const HdSceneIndexBaseRefPtr &inputSceneIndex);
virtual void _PrimsAdded(
const HdSceneIndexBase &sender,
const HdSceneIndexObserver::AddedPrimEntries &entries) = 0;
virtual void _PrimsRemoved(
const HdSceneIndexBase &sender,
const HdSceneIndexObserver::RemovedPrimEntries &entries) = 0;
virtual void _PrimsDirtied(
const HdSceneIndexBase &sender,
const HdSceneIndexObserver::DirtiedPrimEntries &entries) = 0;
const HdSceneIndexBaseRefPtr &_GetInputSceneIndex() const {
return _inputSceneIndex;
}
private:
HdSceneIndexBaseRefPtr _inputSceneIndex;
friend class _Observer;
class _Observer : public HdSceneIndexObserver
{
public:
_Observer(HdSingleInputFilteringSceneIndexBase *owner)
: _owner(owner) {}
void PrimsAdded(
const HdSceneIndexBase &sender,
const AddedPrimEntries &entries) override;
void PrimsRemoved(
const HdSceneIndexBase &sender,
const RemovedPrimEntries &entries) override;
void PrimsDirtied(
const HdSceneIndexBase &sender,
const DirtiedPrimEntries &entries) override;
private:
HdSingleInputFilteringSceneIndexBase *_owner;
};
_Observer _observer;
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif // PXR_IMAGING_HD_FILTERING_SCENE_INDEX_H
@@ -1,150 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_IMAGING_HD_FLATTENING_SCENE_H
#define PXR_IMAGING_HD_FLATTENING_SCENE_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/filteringSceneIndex.h"
#include "pxr/usd/sdf/pathTable.h"
PXR_NAMESPACE_OPEN_SCOPE
class HdFlatteningSceneIndex;
TF_DECLARE_REF_PTRS(HdFlatteningSceneIndex);
///
/// \class HdFlatteningSceneIndex
///
/// A scene index that observes an input scene index and produces a comparable
/// scene in which inherited state is represented at leaf prims.
///
/// This kind of representation is typically required for legacy-style
/// render delegates that require all the information to be available at the
/// leaf prims.
///
class HdFlatteningSceneIndex : public HdSingleInputFilteringSceneIndexBase
{
public:
/// Creates a new flattening scene index.
///
static HdFlatteningSceneIndexRefPtr New(
const HdSceneIndexBaseRefPtr &inputScene) {
return TfCreateRefPtr(new HdFlatteningSceneIndex(inputScene));
}
HD_API
~HdFlatteningSceneIndex() override;
// satisfying HdSceneIndexBase
HD_API
HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override;
HD_API
SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override;
protected:
HD_API
HdFlatteningSceneIndex(const HdSceneIndexBaseRefPtr &inputScene);
// satisfying HdSingleInputFilteringSceneIndexBase
void _PrimsAdded(
const HdSceneIndexBase &sender,
const HdSceneIndexObserver::AddedPrimEntries &entries) override;
void _PrimsRemoved(
const HdSceneIndexBase &sender,
const HdSceneIndexObserver::RemovedPrimEntries &entries) override;
void _PrimsDirtied(
const HdSceneIndexBase &sender,
const HdSceneIndexObserver::DirtiedPrimEntries &entries) override;
private:
// members
struct _PrimEntry
{
HdSceneIndexPrim prim;
};
using _PrimEntryTable = SdfPathTable<_PrimEntry>;
_PrimEntryTable _prims;
HdContainerDataSourceHandle _identityXform;
HdContainerDataSourceHandle _identityVis;
HdContainerDataSourceHandle _identityPurpose;
// methods
void _DirtyHierarchy(
const SdfPath &primPath,
const HdDataSourceLocatorSet &dirtyLocators,
HdSceneIndexObserver::DirtiedPrimEntries *dirtyEntries);
// ------------------------------------------------------------------------
friend class _PrimLevelWrappingDataSource;
/// wraps the input scene's prim-level data sources in order to deliver
/// overriden value
class _PrimLevelWrappingDataSource : public HdContainerDataSource
{
public:
HD_DECLARE_DATASOURCE(_PrimLevelWrappingDataSource);
_PrimLevelWrappingDataSource(
const HdFlatteningSceneIndex &scene,
const SdfPath &primPath,
HdContainerDataSourceHandle inputDataSource);
void UpdateInputDataSource(HdContainerDataSourceHandle inputDataSource);
bool PrimDirtied(const HdDataSourceLocatorSet &locators);
bool Has(const TfToken &name) override;
TfTokenVector GetNames() override;
HdDataSourceBaseHandle Get(const TfToken &name) override;
private:
HdDataSourceBaseHandle _GetXform();
HdDataSourceBaseHandle _GetVis();
HdDataSourceBaseHandle _GetPurpose();
const HdFlatteningSceneIndex &_sceneIndex;
SdfPath _primPath;
HdContainerDataSourceHandle _inputDataSource;
HdContainerDataSourceAtomicHandle _computedXformDataSource;
HdContainerDataSourceAtomicHandle _computedVisDataSource;
HdContainerDataSourceAtomicHandle _computedPurposeDataSource;
};
HD_DECLARE_DATASOURCE_HANDLES(_PrimLevelWrappingDataSource);
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
-117
View File
@@ -1,117 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_GEOM_SUBSET_SCHEMA_H
#define PXR_IMAGING_HD_GEOM_SUBSET_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDGEOMSUBSET_SCHEMA_TOKENS \
(type) \
(indices) \
(typeFaceSet) \
(typePointSet) \
(typeCurveSet) \
TF_DECLARE_PUBLIC_TOKENS(HdGeomSubsetSchemaTokens, HD_API,
HDGEOMSUBSET_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdGeomSubsetSchema : public HdSchema
{
public:
HdGeomSubsetSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdTokenDataSourceHandle GetType();
HD_API
HdIntArrayDataSourceHandle GetIndices();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdTokenDataSourceHandle &type,
const HdIntArrayDataSourceHandle &indices
);
/// \class HdGeomSubsetSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetType(
const HdTokenDataSourceHandle &type);
HD_API
Builder &SetIndices(
const HdIntArrayDataSourceHandle &indices);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdTokenDataSourceHandle _type;
HdIntArrayDataSourceHandle _indices;
};
/// Returns token data source for use as type value.
/// Values of...
/// - HdGeomSubsetSchemaTokens->typeFaceSet
/// - HdGeomSubsetSchemaTokens->typePointSet
/// - HdGeomSubsetSchemaTokens->typeCurveSet
/// ...will be stored statically and reused for future calls.
HD_API
static HdTokenDataSourceHandle BuildTypeDataSource(
const TfToken &type);
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,72 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_GEOM_SUBSETS_SCHEMA_H
#define PXR_IMAGING_HD_GEOM_SUBSETS_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/geomSubsetSchema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDGEOMSUBSETS_SCHEMA_TOKENS \
(geomSubsets) \
TF_DECLARE_PUBLIC_TOKENS(HdGeomSubsetsSchemaTokens, HD_API,
HDGEOMSUBSETS_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdGeomSubsetsSchema : public HdSchema
{
public:
HdGeomSubsetsSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
TfTokenVector GetIds();
HdGeomSubsetSchema GetGeomSubset(const TfToken & id);
/// Retrieves a container data source with the schema's default name token
/// "geomSubsets" from the parent container and constructs a
/// HdGeomSubsetsSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdGeomSubsetsSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,111 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_INSTANCE_CATEGORIES_SCHEMA_H
#define PXR_IMAGING_HD_INSTANCE_CATEGORIES_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDINSTANCECATEGORIES_SCHEMA_TOKENS \
(instanceCategories) \
(categoriesValues) \
TF_DECLARE_PUBLIC_TOKENS(HdInstanceCategoriesSchemaTokens, HD_API,
HDINSTANCECATEGORIES_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdInstanceCategoriesSchema : public HdSchema
{
public:
HdInstanceCategoriesSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdVectorDataSourceHandle GetCategoriesValues();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdVectorDataSourceHandle &categoriesValues
);
/// \class HdInstanceCategoriesSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetCategoriesValues(
const HdVectorDataSourceHandle &categoriesValues);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdVectorDataSourceHandle _categoriesValues;
};
/// Retrieves a container data source with the schema's default name token
/// "instanceCategories" from the parent container and constructs a
/// HdInstanceCategoriesSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdInstanceCategoriesSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
-121
View File
@@ -1,121 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_INSTANCE_SCHEMA_H
#define PXR_IMAGING_HD_INSTANCE_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDINSTANCE_SCHEMA_TOKENS \
(instancer) \
(path) \
TF_DECLARE_PUBLIC_TOKENS(HdInstanceSchemaTokens, HD_API,
HDINSTANCE_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
// This schema can be considered the opposite of instancerTopology's
// "instanceLocations". When the scene coalesces scene prims into multiple
// instances of a single prototype, it inserts "instance" prims at the site
// of de-duplication. The instancer prim added to manage the prototype
// uses "instanceLocations" to point back to all of these instance prims.
//
// The instance prims aren't directly useful for rendering but can be useful
// for scene processing and data aggregation.
class HdInstanceSchema : public HdSchema
{
public:
HdInstanceSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdPathArrayDataSourceHandle GetPath();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdPathArrayDataSourceHandle &path
);
/// \class HdInstanceSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetPath(
const HdPathArrayDataSourceHandle &path);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdPathArrayDataSourceHandle _path;
};
/// Retrieves a container data source with the schema's default name token
/// "instancer" from the parent container and constructs a
/// HdInstanceSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdInstanceSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
-131
View File
@@ -1,131 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_INSTANCED_BY_SCHEMA_H
#define PXR_IMAGING_HD_INSTANCED_BY_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDINSTANCEDBY_SCHEMA_TOKENS \
(instancedBy) \
(paths) \
TF_DECLARE_PUBLIC_TOKENS(HdInstancedBySchemaTokens, HD_API,
HDINSTANCEDBY_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
// A schema marking a prim as instanced by another prim.
//
// Many renderers need to know not what prototypes an instancer has, but
// rather what instancers a prototype has; this is encoded in
// "instancedBy". A prim is "instancedBy" /Instancer if /Instancer has
// a prototype path that's a parent of the prim. A complicating exception is
// if /A instances /A/B, which instances /A/B/C, we don't consider /A to be
// instancing /A/B/C directly; this is to support nested explicit instancing
// of things like leaves/trees/forests.
//
// This value is computed based on the instancer topology of instancer prims in
// the scene.
//
// Note: if multiple instancers reference a prototype, it's possible for
// instancedBy to contain multiple entries. Some renderers may be able to
// read this directly, but some may need to duplicate prims with an op so that
// each prim has a single instancer, depending on how the renderer exposes
// instancing.
class HdInstancedBySchema : public HdSchema
{
public:
HdInstancedBySchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdPathArrayDataSourceHandle GetPaths();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdPathArrayDataSourceHandle &paths
);
/// \class HdInstancedBySchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetPaths(
const HdPathArrayDataSourceHandle &paths);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdPathArrayDataSourceHandle _paths;
};
/// Retrieves a container data source with the schema's default name token
/// "instancedBy" from the parent container and constructs a
/// HdInstancedBySchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdInstancedBySchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,177 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_INSTANCER_TOPOLOGY_SCHEMA_H
#define PXR_IMAGING_HD_INSTANCER_TOPOLOGY_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDINSTANCERTOPOLOGY_SCHEMA_TOKENS \
(instancerTopology) \
(prototypes) \
(instanceIndices) \
(mask) \
(instanceLocations) \
TF_DECLARE_PUBLIC_TOKENS(HdInstancerTopologySchemaTokens, HD_API,
HDINSTANCERTOPOLOGY_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
// Since the instancing schema is complicated:
//
// An instancer is a prim at a certain scenegraph location that causes other
// prims to be duplicated. The instancer can also hold instance-varying data
// like constant primvars or material relationships.
//
// The important things an instancer has is:
// 1.) Instancer topology, describing how exactly the prims are duplicated;
// 2.) Instance-rate data, meaning data that varies per instance, such as
// primvars or material bindings.
//
// If an instancer causes prims "/A" and "/B" to be duplicated, we encode that
// by setting prototypes = ["/A", "/B"]. Note that "/A" and "/B" can be
// subtrees, not direct gprims. instanceIndices encodes both multiplicity
// and position in arrays of instance-rate data, per prototype path; if
// instanceIndices = { [0,2], [1] }, then we draw /A twice (with instance
// primvar indices 0 and 2); and /B once (with instance primvar index 1).
// Mask is an auxiliary parameter that can be used to deactivate certain
// instances; mask = [true, true, false] would disable the
// second copy of "/A". An empty mask array is the same as all-true.
//
// Scenes generally specify instancing in one of two ways:
// 1.) Explicit instancing: prim /Instancer wants to draw its subtree at
// an array of locations. This is a data expansion form.
// 2.) Implicit instancing: prims /X and /Y are marked as being identical,
// and scene load replaces them with a single prim and an instancer.
// This is a data coalescing form.
//
// For implicit instancing, we want to know the original paths of /X and /Y,
// for doing things like resolving inheritance. This is encoded in the
// "instanceLocations" path, while the prototype prims (e.g. /_Prototype/Cube,
// the deduplicated version of /X/Cube and /Y/Cube) is encoded in the
// "prototypes" path.
//
// For explicit instancing, the "instanceLocations" attribute is meaningless
// and should be left null.
class HdInstancerTopologySchema : public HdSchema
{
public:
HdInstancerTopologySchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdPathArrayDataSourceHandle GetPrototypes();
// Note: expected to be a vector of HdIntArrayDataSource.
HD_API
HdVectorDataSourceHandle GetInstanceIndices();
HD_API
HdBoolArrayDataSourceHandle GetMask();
HD_API
HdPathArrayDataSourceHandle GetInstanceLocations();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdPathArrayDataSourceHandle &prototypes,
const HdVectorDataSourceHandle &instanceIndices,
const HdBoolArrayDataSourceHandle &mask,
const HdPathArrayDataSourceHandle &instanceLocations
);
/// \class HdInstancerTopologySchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetPrototypes(
const HdPathArrayDataSourceHandle &prototypes);
HD_API
Builder &SetInstanceIndices(
const HdVectorDataSourceHandle &instanceIndices);
HD_API
Builder &SetMask(
const HdBoolArrayDataSourceHandle &mask);
HD_API
Builder &SetInstanceLocations(
const HdPathArrayDataSourceHandle &instanceLocations);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdPathArrayDataSourceHandle _prototypes;
HdVectorDataSourceHandle _instanceIndices;
HdBoolArrayDataSourceHandle _mask;
HdPathArrayDataSourceHandle _instanceLocations;
};
// HELPERS
VtArray<int> ComputeInstanceIndicesForProto(SdfPath const &path);
/// Retrieves a container data source with the schema's default name token
/// "instancerTopology" from the parent container and constructs a
/// HdInstancerTopologySchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdInstancerTopologySchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,174 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_LEGACY_DISPLAY_STYLE_SCHEMA_H
#define PXR_IMAGING_HD_LEGACY_DISPLAY_STYLE_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDLEGACYDISPLAYSTYLE_SCHEMA_TOKENS \
(displayStyle) \
(refineLevel) \
(flatShadingEnabled) \
(displacementEnabled) \
(occludedSelectionShowsThrough) \
(shadingStyle) \
(reprSelector) \
(cullStyle) \
TF_DECLARE_PUBLIC_TOKENS(HdLegacyDisplayStyleSchemaTokens, HD_API,
HDLEGACYDISPLAYSTYLE_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdLegacyDisplayStyleSchema : public HdSchema
{
public:
HdLegacyDisplayStyleSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdIntDataSourceHandle GetRefineLevel();
HD_API
HdBoolDataSourceHandle GetFlatShadingEnabled();
HD_API
HdBoolDataSourceHandle GetDisplacementEnabled();
HD_API
HdBoolDataSourceHandle GetOccludedSelectionShowsThrough();
HD_API
HdTokenDataSourceHandle GetShadingStyle();
HD_API
HdTokenArrayDataSourceHandle GetReprSelector();
HD_API
HdTokenDataSourceHandle GetCullStyle();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdIntDataSourceHandle &refineLevel,
const HdBoolDataSourceHandle &flatShadingEnabled,
const HdBoolDataSourceHandle &displacementEnabled,
const HdBoolDataSourceHandle &occludedSelectionShowsThrough,
const HdTokenDataSourceHandle &shadingStyle,
const HdTokenArrayDataSourceHandle &reprSelector,
const HdTokenDataSourceHandle &cullStyle
);
/// \class HdLegacyDisplayStyleSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetRefineLevel(
const HdIntDataSourceHandle &refineLevel);
HD_API
Builder &SetFlatShadingEnabled(
const HdBoolDataSourceHandle &flatShadingEnabled);
HD_API
Builder &SetDisplacementEnabled(
const HdBoolDataSourceHandle &displacementEnabled);
HD_API
Builder &SetOccludedSelectionShowsThrough(
const HdBoolDataSourceHandle &occludedSelectionShowsThrough);
HD_API
Builder &SetShadingStyle(
const HdTokenDataSourceHandle &shadingStyle);
HD_API
Builder &SetReprSelector(
const HdTokenArrayDataSourceHandle &reprSelector);
HD_API
Builder &SetCullStyle(
const HdTokenDataSourceHandle &cullStyle);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdIntDataSourceHandle _refineLevel;
HdBoolDataSourceHandle _flatShadingEnabled;
HdBoolDataSourceHandle _displacementEnabled;
HdBoolDataSourceHandle _occludedSelectionShowsThrough;
HdTokenDataSourceHandle _shadingStyle;
HdTokenArrayDataSourceHandle _reprSelector;
HdTokenDataSourceHandle _cullStyle;
};
/// Retrieves a container data source with the schema's default name token
/// "displayStyle" from the parent container and constructs a
/// HdLegacyDisplayStyleSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdLegacyDisplayStyleSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the reprselector data source can be found.
/// This is often useful for checking intersection against the
/// HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
HD_API
static const HdDataSourceLocator &GetReprSelectorLocator();
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the cullstyle data source can be found.
/// This is often useful for checking intersection against the
/// HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied.
HD_API
static const HdDataSourceLocator &GetCullStyleLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,63 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#ifndef PXR_IMAGING_HD_LEGACY_PRIM_SCENE_INDEX_H
#define PXR_IMAGING_HD_LEGACY_PRIM_SCENE_INDEX_H
#include "pxr/imaging/hd/retainedSceneIndex.h"
PXR_NAMESPACE_OPEN_SCOPE
class HdSceneDelegate;
TF_DECLARE_REF_PTRS(HdLegacyPrimSceneIndex);
/// \class HdLegacyPrimSceneIndex
///
/// Extends HdRetainedSceneIndex to instantiate and dirty HdDataSourceLegacyPrim
/// data sources.
///
/// During emulation of legacy HdSceneDelegates, HdRenderIndex forwards
/// prim insertion calls here to produce a comparable HdSceneIndex
/// representation
class HdLegacyPrimSceneIndex : public HdRetainedSceneIndex
{
public:
static HdLegacyPrimSceneIndexRefPtr New() {
return TfCreateRefPtr(new HdLegacyPrimSceneIndex);
}
/// custom insertion wrapper called by HdRenderIndex during population
/// of legacy HdSceneDelegates
void AddLegacyPrim(SdfPath const &id, TfToken const &type,
HdSceneDelegate *sceneDelegate);
/// extends to also call DirtyPrim on HdDataSourceLegacyPrim
void DirtyPrims(
const HdSceneIndexObserver::DirtiedPrimEntries &entries) override;
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
-72
View File
@@ -1,72 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_LIGHT_SCHEMA_H
#define PXR_IMAGING_HD_LIGHT_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDLIGHT_SCHEMA_TOKENS \
(light) \
TF_DECLARE_PUBLIC_TOKENS(HdLightSchemaTokens, HD_API,
HDLIGHT_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdLightSchema : public HdSchema
{
public:
HdLightSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
/// Retrieves a container data source with the schema's default name token
/// "light" from the parent container and constructs a
/// HdLightSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdLightSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,83 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_MATERIAL_BINDING_SCHEMA_H
#define PXR_IMAGING_HD_MATERIAL_BINDING_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDMATERIALBINDING_SCHEMA_TOKENS \
(materialBinding) \
((allPurpose, "")) \
TF_DECLARE_PUBLIC_TOKENS(HdMaterialBindingSchemaTokens, HD_API,
HDMATERIALBINDING_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdMaterialBindingSchema : public HdSchema
{
public:
HdMaterialBindingSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
HD_API
static HdContainerDataSourceHandle
BuildRetained(
size_t count,
TfToken *names,
HdDataSourceBaseHandle *values);
HdPathDataSourceHandle GetMaterialBinding();
HdPathDataSourceHandle GetMaterialBinding(TfToken const &purpose);
/// Retrieves a container data source with the schema's default name token
/// "materialBinding" from the parent container and constructs a
/// HdMaterialBindingSchema instance.
/// Because the requested container data source may not exist, the result
/// should be checked with IsDefined() or a bool comparison before use.
HD_API
static HdMaterialBindingSchema GetFromParent(
const HdContainerDataSourceHandle &fromParentContainer);
/// Returns an HdDataSourceLocator (relative to the prim-level data source)
/// where the container representing this schema is found by default.
HD_API
static const HdDataSourceLocator &GetDefaultLocator();
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,104 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_MATERIAL_CONNECTION_SCHEMA_H
#define PXR_IMAGING_HD_MATERIAL_CONNECTION_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDMATERIALCONNECTION_SCHEMA_TOKENS \
(upstreamNodePath) \
(upstreamNodeOutputName) \
TF_DECLARE_PUBLIC_TOKENS(HdMaterialConnectionSchemaTokens, HD_API,
HDMATERIALCONNECTION_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdMaterialConnectionSchema : public HdSchema
{
public:
HdMaterialConnectionSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdTokenDataSourceHandle GetUpstreamNodePath();
HD_API
HdTokenDataSourceHandle GetUpstreamNodeOutputName();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdTokenDataSourceHandle &upstreamNodePath,
const HdTokenDataSourceHandle &upstreamNodeOutputName
);
/// \class HdMaterialConnectionSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetUpstreamNodePath(
const HdTokenDataSourceHandle &upstreamNodePath);
HD_API
Builder &SetUpstreamNodeOutputName(
const HdTokenDataSourceHandle &upstreamNodeOutputName);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdTokenDataSourceHandle _upstreamNodePath;
HdTokenDataSourceHandle _upstreamNodeOutputName;
};
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
@@ -1,104 +0,0 @@
//
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
////////////////////////////////////////////////////////////////////////
// This file is generated by a script. Do not edit directly. Edit the
// schema.template.h file to make changes.
#ifndef PXR_IMAGING_HD_MATERIAL_NETWORK_SCHEMA_H
#define PXR_IMAGING_HD_MATERIAL_NETWORK_SCHEMA_H
#include "pxr/imaging/hd/api.h"
#include "pxr/imaging/hd/schema.h"
PXR_NAMESPACE_OPEN_SCOPE
//-----------------------------------------------------------------------------
#define HDMATERIALNETWORK_SCHEMA_TOKENS \
(nodes) \
(terminals) \
TF_DECLARE_PUBLIC_TOKENS(HdMaterialNetworkSchemaTokens, HD_API,
HDMATERIALNETWORK_SCHEMA_TOKENS);
//-----------------------------------------------------------------------------
class HdMaterialNetworkSchema : public HdSchema
{
public:
HdMaterialNetworkSchema(HdContainerDataSourceHandle container)
: HdSchema(container) {}
//ACCESSORS
HD_API
HdContainerDataSourceHandle GetNodes();
HD_API
HdContainerDataSourceHandle GetTerminals();
// RETRIEVING AND CONSTRUCTING
/// Builds a container data source which includes the provided child data
/// sources. Parameters with nullptr values are excluded. This is a
/// low-level interface. For cases in which it's desired to define
/// the container with a sparse set of child fields, the Builder class
/// is often more convenient and readable.
HD_API
static HdContainerDataSourceHandle
BuildRetained(
const HdContainerDataSourceHandle &nodes,
const HdContainerDataSourceHandle &terminals
);
/// \class HdMaterialNetworkSchema::Builder
///
/// Utility class for setting sparse sets of child data source fields to be
/// filled as arguments into BuildRetained. Because all setter methods
/// return a reference to the instance, this can be used in the "builder
/// pattern" form.
class Builder
{
public:
HD_API
Builder &SetNodes(
const HdContainerDataSourceHandle &nodes);
HD_API
Builder &SetTerminals(
const HdContainerDataSourceHandle &terminals);
/// Returns a container data source containing the members set thus far.
HD_API
HdContainerDataSourceHandle Build();
private:
HdContainerDataSourceHandle _nodes;
HdContainerDataSourceHandle _terminals;
};
};
PXR_NAMESPACE_CLOSE_SCOPE
#endif
Loaded 100 of 1016 files, more files were not shown because too many files have changed in this diff. Show more