RenderManAPI  24.0
RileyIds.h
Go to the documentation of this file.
1 /*
2 # ------------------------------------------------------------------------------
3 #
4 # Copyright (c) 2020 Pixar. All rights reserved.
5 #
6 # The information in this file (the "Software") is provided for the exclusive
7 # use of the software licensees of Pixar ("Licensees"). Licensees have the
8 # right to incorporate the Software into other products for use by other
9 # authorized software licensees of Pixar, without fee. Except as expressly
10 # permitted herein, the Software may not be disclosed to third parties, copied
11 # or duplicated in any form, in whole or in part, without the prior written
12 # permission of Pixar.
13 #
14 # The copyright notices in the Software and this entire statement, including the
15 # above license grant, this restriction and the following disclaimer, must be
16 # included in all copies of the Software, in whole or in part, and all permitted
17 # derivative works of the Software, unless such copies or derivative works are
18 # solely in the form of machine-executable object code generated by a source
19 # language processor.
20 #
21 # PIXAR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
22 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL PIXAR BE
23 # LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
24 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
25 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
26 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. IN NO CASE WILL
27 # PIXAR'S TOTAL LIABILITY FOR ALL DAMAGES ARISING OUT OF OR IN CONNECTION WITH
28 # THE USE OR PERFORMANCE OF THIS SOFTWARE EXCEED $50.
29 #
30 # Pixar
31 # 1200 Park Ave
32 # Emeryville CA 94608
33 #
34 # ------------------------------------------------------------------------------
35 */
36 
37 #ifndef _RILEY_RILEYID_H_
38 #define _RILEY_RILEYID_H_
39 
40 #include <cstdint>
41 
43 
45 class CameraId
46 {
47 public:
48  ~CameraId() = default;
49  CameraId() noexcept; // Default-construction yields the invalid id.
50  explicit CameraId(uint32_t val) noexcept;
51 
52  bool operator==(const CameraId& rhs) const noexcept;
53  bool operator!=(const CameraId& rhs) const noexcept;
54  bool operator<(const CameraId& rhs) const noexcept;
55  bool operator>(const CameraId& rhs) const noexcept;
56 
57  uint32_t AsUInt32() const noexcept;
58  static CameraId InvalidId() noexcept;
59 
60 private:
61  uint32_t m_val;
62 };
63 
66 {
67 public:
68  ~ClippingPlaneId() = default;
69  ClippingPlaneId() noexcept; // Default-construction yields the invalid id.
70  explicit ClippingPlaneId(uint32_t val) noexcept;
71 
72  bool operator==(const ClippingPlaneId& rhs) const noexcept;
73  bool operator!=(const ClippingPlaneId& rhs) const noexcept;
74  bool operator<(const ClippingPlaneId& rhs) const noexcept;
75  bool operator>(const ClippingPlaneId& rhs) const noexcept;
76 
77  uint32_t AsUInt32() const noexcept;
78  static ClippingPlaneId InvalidId() noexcept;
79 
80 private:
81  uint32_t m_val;
82 };
83 
86 {
87 public:
88  ~DisplayFilterId() = default;
89  DisplayFilterId() noexcept; // Default-construction yields the invalid id.
90  explicit DisplayFilterId(uint32_t val) noexcept;
91 
92  bool operator==(const DisplayFilterId& rhs) const noexcept;
93  bool operator!=(const DisplayFilterId& rhs) const noexcept;
94  bool operator<(const DisplayFilterId& rhs) const noexcept;
95  bool operator>(const DisplayFilterId& rhs) const noexcept;
96 
97  uint32_t AsUInt32() const noexcept;
98  static DisplayFilterId InvalidId() noexcept;
99 
100 private:
101  uint32_t m_val;
102 };
103 
106 {
107 public:
108  ~SampleFilterId() = default;
109  SampleFilterId() noexcept; // Default-construction yields the invalid id.
110  explicit SampleFilterId(uint32_t val) noexcept;
111 
112  bool operator==(const SampleFilterId& rhs) const noexcept;
113  bool operator!=(const SampleFilterId& rhs) const noexcept;
114  bool operator<(const SampleFilterId& rhs) const noexcept;
115  bool operator>(const SampleFilterId& rhs) const noexcept;
116 
117  uint32_t AsUInt32() const noexcept;
118  static SampleFilterId InvalidId() noexcept;
119 
120 private:
121  uint32_t m_val;
122 };
123 
126 {
127 public:
128  ~GeometryInstanceId() = default;
129  GeometryInstanceId() noexcept; // Default-construction yields the invalid id.
130  explicit GeometryInstanceId(uint32_t val) noexcept;
131 
132  bool operator==(const GeometryInstanceId& rhs) const noexcept;
133  bool operator!=(const GeometryInstanceId& rhs) const noexcept;
134  bool operator<(const GeometryInstanceId& rhs) const noexcept;
135  bool operator>(const GeometryInstanceId& rhs) const noexcept;
136 
137  uint32_t AsUInt32() const noexcept;
138  static GeometryInstanceId InvalidId() noexcept;
139 
140 private:
141  uint32_t m_val;
142 };
143 
146 {
147 public:
148  ~GeometryPrototypeId() = default;
149  GeometryPrototypeId() noexcept; // Default-construction yields the invalid id.
150  explicit GeometryPrototypeId(uint32_t val) noexcept;
151 
152  bool operator==(const GeometryPrototypeId& rhs) const noexcept;
153  bool operator!=(const GeometryPrototypeId& rhs) const noexcept;
154  bool operator<(const GeometryPrototypeId& rhs) const noexcept;
155  bool operator>(const GeometryPrototypeId& rhs) const noexcept;
156 
157  uint32_t AsUInt32() const noexcept;
158  static GeometryPrototypeId InvalidId() noexcept;
159 
160 private:
161  uint32_t m_val;
162 };
163 
166 {
167 public:
168  ~MaterialId() = default;
169  MaterialId() noexcept; // Default-construction yields the invalid id.
170  explicit MaterialId(uint32_t val) noexcept;
171 
172  bool operator==(const MaterialId& rhs) const noexcept;
173  bool operator!=(const MaterialId& rhs) const noexcept;
174  bool operator<(const MaterialId& rhs) const noexcept;
175  bool operator>(const MaterialId& rhs) const noexcept;
176 
177  uint32_t AsUInt32() const noexcept;
178  static MaterialId InvalidId() noexcept;
179 
180 private:
181  uint32_t m_val;
182 };
183 
186 {
187 public:
188  ~DisplacementId() = default;
189  DisplacementId() noexcept; // Default-construction yields the invalid id.
190  explicit DisplacementId(uint32_t val) noexcept;
191 
192  bool operator==(const DisplacementId& rhs) const noexcept;
193  bool operator!=(const DisplacementId& rhs) const noexcept;
194  bool operator<(const DisplacementId& rhs) const noexcept;
195  bool operator>(const DisplacementId& rhs) const noexcept;
196 
197  uint32_t AsUInt32() const noexcept;
198  static DisplacementId InvalidId() noexcept;
199 
200 private:
201  uint32_t m_val;
202 };
203 
206 {
207 public:
208  ~IntegratorId() = default;
209  IntegratorId() noexcept; // Default-construction yields the invalid id.
210  explicit IntegratorId(uint32_t val) noexcept;
211 
212  bool operator==(const IntegratorId& rhs) const noexcept;
213  bool operator!=(const IntegratorId& rhs) const noexcept;
214  bool operator<(const IntegratorId& rhs) const noexcept;
215  bool operator>(const IntegratorId& rhs) const noexcept;
216 
217  uint32_t AsUInt32() const noexcept;
218  static IntegratorId InvalidId() noexcept;
219 
220 private:
221  uint32_t m_val;
222 };
223 
226 {
227 public:
228  ~LightInstanceId() = default;
229  LightInstanceId() noexcept; // Default-construction yields the invalid id.
230  explicit LightInstanceId(uint32_t val) noexcept;
231 
232  bool operator==(const LightInstanceId& rhs) const noexcept;
233  bool operator!=(const LightInstanceId& rhs) const noexcept;
234  bool operator<(const LightInstanceId& rhs) const noexcept;
235  bool operator>(const LightInstanceId& rhs) const noexcept;
236 
237  uint32_t AsUInt32() const noexcept;
238  static LightInstanceId InvalidId() noexcept;
239 
240 private:
241  uint32_t m_val;
242 };
243 
246 {
247 public:
248  ~LightShaderId() = default;
249  LightShaderId() noexcept; // Default-construction yields the invalid id.
250  explicit LightShaderId(uint32_t val) noexcept;
251 
252  bool operator==(const LightShaderId& rhs) const noexcept;
253  bool operator!=(const LightShaderId& rhs) const noexcept;
254  bool operator<(const LightShaderId& rhs) const noexcept;
255  bool operator>(const LightShaderId& rhs) const noexcept;
256 
257  uint32_t AsUInt32() const noexcept;
258  static LightShaderId InvalidId() noexcept;
259 
260 private:
261  uint32_t m_val;
262 };
263 
266 {
267 public:
268  ~CoordinateSystemId() = default;
269  CoordinateSystemId() noexcept; // Default-construction yields the invalid id.
270  explicit CoordinateSystemId(uint32_t val) noexcept;
271 
272  bool operator==(const CoordinateSystemId& rhs) const noexcept;
273  bool operator!=(const CoordinateSystemId& rhs) const noexcept;
274  bool operator<(const CoordinateSystemId& rhs) const noexcept;
275  bool operator>(const CoordinateSystemId& rhs) const noexcept;
276 
277  uint32_t AsUInt32() const noexcept;
278  static CoordinateSystemId InvalidId() noexcept;
279 
280 private:
281  uint32_t m_val;
282 };
283 
286 {
287 public:
288  ~RenderOutputId() = default;
289  RenderOutputId() noexcept; // Default-construction yields the invalid id.
290  explicit RenderOutputId(uint32_t val) noexcept;
291 
292  bool operator==(const RenderOutputId& rhs) const noexcept;
293  bool operator!=(const RenderOutputId& rhs) const noexcept;
294  bool operator<(const RenderOutputId& rhs) const noexcept;
295  bool operator>(const RenderOutputId& rhs) const noexcept;
296 
297  uint32_t AsUInt32() const noexcept;
298  static RenderOutputId InvalidId() noexcept;
299 
300 private:
301  uint32_t m_val;
302 };
303 
306 {
307 public:
308  ~RenderTargetId() = default;
309  RenderTargetId() noexcept; // Default-construction yields the invalid id.
310  explicit RenderTargetId(uint32_t val) noexcept;
311 
312  bool operator==(const RenderTargetId& rhs) const noexcept;
313  bool operator!=(const RenderTargetId& rhs) const noexcept;
314  bool operator<(const RenderTargetId& rhs) const noexcept;
315  bool operator>(const RenderTargetId& rhs) const noexcept;
316 
317  uint32_t AsUInt32() const noexcept;
318  static RenderTargetId InvalidId() noexcept;
319 
320 private:
321  uint32_t m_val;
322 };
323 
326 {
327 public:
328  ~DisplayId() = default;
329  DisplayId() noexcept; // Default-construction yields the invalid id.
330  explicit DisplayId(uint32_t val) noexcept;
331 
332  bool operator==(const DisplayId& rhs) const noexcept;
333  bool operator!=(const DisplayId& rhs) const noexcept;
334  bool operator<(const DisplayId& rhs) const noexcept;
335  bool operator>(const DisplayId& rhs) const noexcept;
336 
337  uint32_t AsUInt32() const noexcept;
338  static DisplayId InvalidId() noexcept;
339 
340 private:
341  uint32_t m_val;
342 };
343 
346 {
347 public:
348  ~RenderViewId() = default;
349  RenderViewId() noexcept; // Default-construction yields the invalid id.
350  explicit RenderViewId(uint32_t val) noexcept;
351 
352  bool operator==(const RenderViewId& rhs) const noexcept;
353  bool operator!=(const RenderViewId& rhs) const noexcept;
354  bool operator<(const RenderViewId& rhs) const noexcept;
355  bool operator>(const RenderViewId& rhs) const noexcept;
356 
357  uint32_t AsUInt32() const noexcept;
358  static RenderViewId InvalidId() noexcept;
359 
360 private:
361  uint32_t m_val;
362 };
363 
364 // UserId values are stored by the Riley implementer, along the corresponding Riley entity, without
365 // any modifications. The Riley implementer shouldn't assume anything about these UserIds (e.g.
366 // they are not necessarily unique).
367 //
368 // The association between a UserId and the corresponding Riley Id stays constant until the Riley
369 // entity is destroyed.
370 //
371 // These ids are not intended to replace the Riley Ids. They are intended to be used by the Riley
372 // implementer to refer to a particular entity, in a way that is independent from the Riley API.
373 // They can be seen generalization of the name identifiers occasionally used by some entities (e.g.
374 // instances).
375 //
376 // For example, a Riley implementer could use UserId values in: log outputs, communication with
377 // external modules, AOVs outputs, etc...
378 class UserId
379 {
380 public:
381  ~UserId() = default;
382  UserId() noexcept; // Default-construction yields the invalid id.
383  explicit UserId(uint64_t val) noexcept;
384 
385  bool operator==(const UserId& rhs) const noexcept;
386  bool operator!=(const UserId& rhs) const noexcept;
387  bool operator<(const UserId& rhs) const noexcept;
388  bool operator>(const UserId& rhs) const noexcept;
389 
390  uint64_t AsUInt64() const noexcept;
391  static UserId DefaultId() noexcept;
392 
393 private:
394  uint64_t m_val;
395 };
396 
397 inline CameraId::CameraId() noexcept : CameraId(InvalidId())
398 {}
399 inline CameraId::CameraId(uint32_t val) noexcept : m_val(val)
400 {}
401 
402 inline bool CameraId::operator==(const CameraId& rhs) const noexcept
403 {
404  return (m_val == rhs.m_val);
405 }
406 inline bool CameraId::operator!=(const CameraId& rhs) const noexcept
407 {
408  return (m_val != rhs.m_val);
409 }
410 inline bool CameraId::operator<(const CameraId& rhs) const noexcept
411 {
412  return (m_val < rhs.m_val);
413 }
414 inline bool CameraId::operator>(const CameraId& rhs) const noexcept
415 {
416  return (m_val > rhs.m_val);
417 }
418 
419 inline uint32_t CameraId::AsUInt32() const noexcept
420 {
421  return m_val;
422 }
423 
424 inline CameraId CameraId::InvalidId() noexcept
425 {
426  return CameraId(UINT32_MAX);
427 }
428 
429 inline ClippingPlaneId::ClippingPlaneId() noexcept : ClippingPlaneId(InvalidId())
430 {}
431 inline ClippingPlaneId::ClippingPlaneId(uint32_t val) noexcept : m_val(val)
432 {}
433 
434 inline bool ClippingPlaneId::operator==(const ClippingPlaneId& rhs) const noexcept
435 {
436  return (m_val == rhs.m_val);
437 }
438 inline bool ClippingPlaneId::operator!=(const ClippingPlaneId& rhs) const noexcept
439 {
440  return (m_val != rhs.m_val);
441 }
442 inline bool ClippingPlaneId::operator<(const ClippingPlaneId& rhs) const noexcept
443 {
444  return (m_val < rhs.m_val);
445 }
446 inline bool ClippingPlaneId::operator>(const ClippingPlaneId& rhs) const noexcept
447 {
448  return (m_val > rhs.m_val);
449 }
450 
451 inline uint32_t ClippingPlaneId::AsUInt32() const noexcept
452 {
453  return m_val;
454 }
455 
457 {
458  return ClippingPlaneId(UINT32_MAX);
459 }
460 
461 inline DisplayFilterId::DisplayFilterId() noexcept : DisplayFilterId(InvalidId())
462 {}
463 inline DisplayFilterId::DisplayFilterId(uint32_t val) noexcept : m_val(val)
464 {}
465 
466 inline bool DisplayFilterId::operator==(const DisplayFilterId& rhs) const noexcept
467 {
468  return (m_val == rhs.m_val);
469 }
470 inline bool DisplayFilterId::operator!=(const DisplayFilterId& rhs) const noexcept
471 {
472  return (m_val != rhs.m_val);
473 }
474 inline bool DisplayFilterId::operator<(const DisplayFilterId& rhs) const noexcept
475 {
476  return (m_val < rhs.m_val);
477 }
478 inline bool DisplayFilterId::operator>(const DisplayFilterId& rhs) const noexcept
479 {
480  return (m_val > rhs.m_val);
481 }
482 
483 inline uint32_t DisplayFilterId::AsUInt32() const noexcept
484 {
485  return m_val;
486 }
487 
489 {
490  return DisplayFilterId(UINT32_MAX);
491 }
492 
493 inline SampleFilterId::SampleFilterId() noexcept : SampleFilterId(InvalidId())
494 {}
495 inline SampleFilterId::SampleFilterId(uint32_t val) noexcept : m_val(val)
496 {}
497 
498 inline bool SampleFilterId::operator==(const SampleFilterId& rhs) const noexcept
499 {
500  return (m_val == rhs.m_val);
501 }
502 inline bool SampleFilterId::operator!=(const SampleFilterId& rhs) const noexcept
503 {
504  return (m_val != rhs.m_val);
505 }
506 inline bool SampleFilterId::operator<(const SampleFilterId& rhs) const noexcept
507 {
508  return (m_val < rhs.m_val);
509 }
510 inline bool SampleFilterId::operator>(const SampleFilterId& rhs) const noexcept
511 {
512  return (m_val > rhs.m_val);
513 }
514 
515 inline uint32_t SampleFilterId::AsUInt32() const noexcept
516 {
517  return m_val;
518 }
519 
521 {
522  return SampleFilterId(UINT32_MAX);
523 }
524 
526 {}
527 inline GeometryInstanceId::GeometryInstanceId(uint32_t val) noexcept : m_val(val)
528 {}
529 
530 inline bool GeometryInstanceId::operator==(const GeometryInstanceId& rhs) const noexcept
531 {
532  return (m_val == rhs.m_val);
533 }
534 inline bool GeometryInstanceId::operator!=(const GeometryInstanceId& rhs) const noexcept
535 {
536  return (m_val != rhs.m_val);
537 }
538 inline bool GeometryInstanceId::operator<(const GeometryInstanceId& rhs) const noexcept
539 {
540  return (m_val < rhs.m_val);
541 }
542 inline bool GeometryInstanceId::operator>(const GeometryInstanceId& rhs) const noexcept
543 {
544  return (m_val > rhs.m_val);
545 }
546 
547 inline uint32_t GeometryInstanceId::AsUInt32() const noexcept
548 {
549  return m_val;
550 }
551 
553 {
554  return GeometryInstanceId(UINT32_MAX);
555 }
556 
558 {}
559 inline GeometryPrototypeId::GeometryPrototypeId(uint32_t val) noexcept : m_val(val)
560 {}
561 
562 inline bool GeometryPrototypeId::operator==(const GeometryPrototypeId& rhs) const noexcept
563 {
564  return (m_val == rhs.m_val);
565 }
566 inline bool GeometryPrototypeId::operator!=(const GeometryPrototypeId& rhs) const noexcept
567 {
568  return (m_val != rhs.m_val);
569 }
570 inline bool GeometryPrototypeId::operator<(const GeometryPrototypeId& rhs) const noexcept
571 {
572  return (m_val < rhs.m_val);
573 }
574 inline bool GeometryPrototypeId::operator>(const GeometryPrototypeId& rhs) const noexcept
575 {
576  return (m_val > rhs.m_val);
577 }
578 
579 inline uint32_t GeometryPrototypeId::AsUInt32() const noexcept
580 {
581  return m_val;
582 }
583 
585 {
586  return GeometryPrototypeId(UINT32_MAX);
587 }
588 
589 inline MaterialId::MaterialId() noexcept : MaterialId(InvalidId())
590 {}
591 inline MaterialId::MaterialId(uint32_t val) noexcept : m_val(val)
592 {}
593 
594 inline bool MaterialId::operator==(const MaterialId& rhs) const noexcept
595 {
596  return (m_val == rhs.m_val);
597 }
598 inline bool MaterialId::operator!=(const MaterialId& rhs) const noexcept
599 {
600  return (m_val != rhs.m_val);
601 }
602 inline bool MaterialId::operator<(const MaterialId& rhs) const noexcept
603 {
604  return (m_val < rhs.m_val);
605 }
606 inline bool MaterialId::operator>(const MaterialId& rhs) const noexcept
607 {
608  return (m_val > rhs.m_val);
609 }
610 
611 inline uint32_t MaterialId::AsUInt32() const noexcept
612 {
613  return m_val;
614 }
615 
617 {
618  return MaterialId(UINT32_MAX);
619 }
620 
621 inline DisplacementId::DisplacementId() noexcept : DisplacementId(InvalidId())
622 {}
623 inline DisplacementId::DisplacementId(uint32_t val) noexcept : m_val(val)
624 {}
625 
626 inline bool DisplacementId::operator==(const DisplacementId& rhs) const noexcept
627 {
628  return (m_val == rhs.m_val);
629 }
630 inline bool DisplacementId::operator!=(const DisplacementId& rhs) const noexcept
631 {
632  return (m_val != rhs.m_val);
633 }
634 inline bool DisplacementId::operator<(const DisplacementId& rhs) const noexcept
635 {
636  return (m_val < rhs.m_val);
637 }
638 inline bool DisplacementId::operator>(const DisplacementId& rhs) const noexcept
639 {
640  return (m_val > rhs.m_val);
641 }
642 
643 inline uint32_t DisplacementId::AsUInt32() const noexcept
644 {
645  return m_val;
646 }
647 
649 {
650  return DisplacementId(UINT32_MAX);
651 }
652 
653 inline IntegratorId::IntegratorId() noexcept : IntegratorId(InvalidId())
654 {}
655 inline IntegratorId::IntegratorId(uint32_t val) noexcept : m_val(val)
656 {}
657 
658 inline bool IntegratorId::operator==(const IntegratorId& rhs) const noexcept
659 {
660  return (m_val == rhs.m_val);
661 }
662 inline bool IntegratorId::operator!=(const IntegratorId& rhs) const noexcept
663 {
664  return (m_val != rhs.m_val);
665 }
666 inline bool IntegratorId::operator<(const IntegratorId& rhs) const noexcept
667 {
668  return (m_val < rhs.m_val);
669 }
670 inline bool IntegratorId::operator>(const IntegratorId& rhs) const noexcept
671 {
672  return (m_val > rhs.m_val);
673 }
674 
675 inline uint32_t IntegratorId::AsUInt32() const noexcept
676 {
677  return m_val;
678 }
679 
681 {
682  return IntegratorId(UINT32_MAX);
683 }
684 
685 inline LightInstanceId::LightInstanceId() noexcept : LightInstanceId(InvalidId())
686 {}
687 inline LightInstanceId::LightInstanceId(uint32_t val) noexcept : m_val(val)
688 {}
689 
690 inline bool LightInstanceId::operator==(const LightInstanceId& rhs) const noexcept
691 {
692  return (m_val == rhs.m_val);
693 }
694 inline bool LightInstanceId::operator!=(const LightInstanceId& rhs) const noexcept
695 {
696  return (m_val != rhs.m_val);
697 }
698 inline bool LightInstanceId::operator<(const LightInstanceId& rhs) const noexcept
699 {
700  return (m_val < rhs.m_val);
701 }
702 inline bool LightInstanceId::operator>(const LightInstanceId& rhs) const noexcept
703 {
704  return (m_val > rhs.m_val);
705 }
706 
707 inline uint32_t LightInstanceId::AsUInt32() const noexcept
708 {
709  return m_val;
710 }
711 
713 {
714  return LightInstanceId(UINT32_MAX);
715 }
716 
717 inline LightShaderId::LightShaderId() noexcept : LightShaderId(InvalidId())
718 {}
719 inline LightShaderId::LightShaderId(uint32_t val) noexcept : m_val(val)
720 {}
721 
722 inline bool LightShaderId::operator==(const LightShaderId& rhs) const noexcept
723 {
724  return (m_val == rhs.m_val);
725 }
726 inline bool LightShaderId::operator!=(const LightShaderId& rhs) const noexcept
727 {
728  return (m_val != rhs.m_val);
729 }
730 inline bool LightShaderId::operator<(const LightShaderId& rhs) const noexcept
731 {
732  return (m_val < rhs.m_val);
733 }
734 inline bool LightShaderId::operator>(const LightShaderId& rhs) const noexcept
735 {
736  return (m_val > rhs.m_val);
737 }
738 
739 inline uint32_t LightShaderId::AsUInt32() const noexcept
740 {
741  return m_val;
742 }
743 
745 {
746  return LightShaderId(UINT32_MAX);
747 }
748 
750 {}
751 inline CoordinateSystemId::CoordinateSystemId(uint32_t val) noexcept : m_val(val)
752 {}
753 
754 inline bool CoordinateSystemId::operator==(const CoordinateSystemId& rhs) const noexcept
755 {
756  return (m_val == rhs.m_val);
757 }
758 inline bool CoordinateSystemId::operator!=(const CoordinateSystemId& rhs) const noexcept
759 {
760  return (m_val != rhs.m_val);
761 }
762 inline bool CoordinateSystemId::operator<(const CoordinateSystemId& rhs) const noexcept
763 {
764  return (m_val < rhs.m_val);
765 }
766 inline bool CoordinateSystemId::operator>(const CoordinateSystemId& rhs) const noexcept
767 {
768  return (m_val > rhs.m_val);
769 }
770 
771 inline uint32_t CoordinateSystemId::AsUInt32() const noexcept
772 {
773  return m_val;
774 }
775 
777 {
778  return CoordinateSystemId(UINT32_MAX);
779 }
780 
781 inline RenderOutputId::RenderOutputId() noexcept : RenderOutputId(InvalidId())
782 {}
783 inline RenderOutputId::RenderOutputId(uint32_t val) noexcept : m_val(val)
784 {}
785 
786 inline bool RenderOutputId::operator==(const RenderOutputId& rhs) const noexcept
787 {
788  return (m_val == rhs.m_val);
789 }
790 inline bool RenderOutputId::operator!=(const RenderOutputId& rhs) const noexcept
791 {
792  return (m_val != rhs.m_val);
793 }
794 inline bool RenderOutputId::operator<(const RenderOutputId& rhs) const noexcept
795 {
796  return (m_val < rhs.m_val);
797 }
798 inline bool RenderOutputId::operator>(const RenderOutputId& rhs) const noexcept
799 {
800  return (m_val > rhs.m_val);
801 }
802 
803 inline uint32_t RenderOutputId::AsUInt32() const noexcept
804 {
805  return m_val;
806 }
807 
809 {
810  return RenderOutputId(UINT32_MAX);
811 }
812 
813 inline RenderTargetId::RenderTargetId() noexcept : RenderTargetId(InvalidId())
814 {}
815 inline RenderTargetId::RenderTargetId(uint32_t val) noexcept : m_val(val)
816 {}
817 
818 inline bool RenderTargetId::operator==(const RenderTargetId& rhs) const noexcept
819 {
820  return (m_val == rhs.m_val);
821 }
822 inline bool RenderTargetId::operator!=(const RenderTargetId& rhs) const noexcept
823 {
824  return (m_val != rhs.m_val);
825 }
826 inline bool RenderTargetId::operator<(const RenderTargetId& rhs) const noexcept
827 {
828  return (m_val < rhs.m_val);
829 }
830 inline bool RenderTargetId::operator>(const RenderTargetId& rhs) const noexcept
831 {
832  return (m_val > rhs.m_val);
833 }
834 
835 inline uint32_t RenderTargetId::AsUInt32() const noexcept
836 {
837  return m_val;
838 }
839 
841 {
842  return RenderTargetId(UINT32_MAX);
843 }
844 
845 inline DisplayId::DisplayId() noexcept : DisplayId(InvalidId())
846 {}
847 inline DisplayId::DisplayId(uint32_t val) noexcept : m_val(val)
848 {}
849 
850 inline bool DisplayId::operator==(const DisplayId& rhs) const noexcept
851 {
852  return (m_val == rhs.m_val);
853 }
854 inline bool DisplayId::operator!=(const DisplayId& rhs) const noexcept
855 {
856  return (m_val != rhs.m_val);
857 }
858 inline bool DisplayId::operator<(const DisplayId& rhs) const noexcept
859 {
860  return (m_val < rhs.m_val);
861 }
862 inline bool DisplayId::operator>(const DisplayId& rhs) const noexcept
863 {
864  return (m_val > rhs.m_val);
865 }
866 
867 inline uint32_t DisplayId::AsUInt32() const noexcept
868 {
869  return m_val;
870 }
871 
873 {
874  return DisplayId(UINT32_MAX);
875 }
876 
877 inline RenderViewId::RenderViewId() noexcept : RenderViewId(InvalidId())
878 {}
879 inline RenderViewId::RenderViewId(uint32_t val) noexcept : m_val(val)
880 {}
881 
882 inline bool RenderViewId::operator==(const RenderViewId& rhs) const noexcept
883 {
884  return (m_val == rhs.m_val);
885 }
886 inline bool RenderViewId::operator!=(const RenderViewId& rhs) const noexcept
887 {
888  return (m_val != rhs.m_val);
889 }
890 inline bool RenderViewId::operator<(const RenderViewId& rhs) const noexcept
891 {
892  return (m_val < rhs.m_val);
893 }
894 inline bool RenderViewId::operator>(const RenderViewId& rhs) const noexcept
895 {
896  return (m_val > rhs.m_val);
897 }
898 
899 inline uint32_t RenderViewId::AsUInt32() const noexcept
900 {
901  return m_val;
902 }
903 
905 {
906  return RenderViewId(UINT32_MAX);
907 }
908 
909 inline UserId::UserId() noexcept : UserId(DefaultId())
910 {}
911 inline UserId::UserId(uint64_t val) noexcept : m_val(val)
912 {}
913 
914 inline bool UserId::operator==(const UserId& rhs) const noexcept
915 {
916  return (m_val == rhs.m_val);
917 }
918 inline bool UserId::operator!=(const UserId& rhs) const noexcept
919 {
920  return (m_val != rhs.m_val);
921 }
922 inline bool UserId::operator<(const UserId& rhs) const noexcept
923 {
924  return (m_val < rhs.m_val);
925 }
926 inline bool UserId::operator>(const UserId& rhs) const noexcept
927 {
928  return (m_val > rhs.m_val);
929 }
930 
931 inline uint64_t UserId::AsUInt64() const noexcept
932 {
933  return m_val;
934 }
935 
936 inline UserId UserId::DefaultId() noexcept
937 {
938  return UserId(0ULL);
939 }
940 
942 
943 #endif //_RILEY_RILEYID_H_
bool operator>(const UserId &rhs) const noexcept
Definition: RileyIds.h:926
bool operator==(const MaterialId &rhs) const noexcept
Definition: RileyIds.h:594
static RenderViewId InvalidId() noexcept
Definition: RileyIds.h:904
bool operator>(const GeometryInstanceId &rhs) const noexcept
Definition: RileyIds.h:542
uint64_t AsUInt64() const noexcept
Definition: RileyIds.h:931
Definition: RileyIds.h:85
bool operator>(const ClippingPlaneId &rhs) const noexcept
Definition: RileyIds.h:446
bool operator!=(const SampleFilterId &rhs) const noexcept
Definition: RileyIds.h:502
bool operator==(const DisplacementId &rhs) const noexcept
Definition: RileyIds.h:626
static SampleFilterId InvalidId() noexcept
Definition: RileyIds.h:520
static MaterialId InvalidId() noexcept
Definition: RileyIds.h:616
~DisplacementId()=default
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:451
UserId() noexcept
Definition: RileyIds.h:909
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:419
~DisplayFilterId()=default
~MaterialId()=default
bool operator==(const LightShaderId &rhs) const noexcept
Definition: RileyIds.h:722
bool operator==(const RenderOutputId &rhs) const noexcept
Definition: RileyIds.h:786
bool operator>(const DisplacementId &rhs) const noexcept
Definition: RileyIds.h:638
bool operator<(const LightInstanceId &rhs) const noexcept
Definition: RileyIds.h:698
static DisplayId InvalidId() noexcept
Definition: RileyIds.h:872
Definition: RileyIds.h:345
bool operator<(const GeometryInstanceId &rhs) const noexcept
Definition: RileyIds.h:538
bool operator>(const DisplayId &rhs) const noexcept
Definition: RileyIds.h:862
~RenderTargetId()=default
bool operator==(const CoordinateSystemId &rhs) const noexcept
Definition: RileyIds.h:754
bool operator==(const IntegratorId &rhs) const noexcept
Definition: RileyIds.h:658
bool operator!=(const GeometryInstanceId &rhs) const noexcept
Definition: RileyIds.h:534
~RenderViewId()=default
bool operator<(const SampleFilterId &rhs) const noexcept
Definition: RileyIds.h:506
Definition: RileyIds.h:205
Definition: RileyIds.h:165
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:643
bool operator!=(const GeometryPrototypeId &rhs) const noexcept
Definition: RileyIds.h:566
Definition: RileyIds.h:45
bool operator!=(const ClippingPlaneId &rhs) const noexcept
Definition: RileyIds.h:438
~SampleFilterId()=default
bool operator>(const CameraId &rhs) const noexcept
Definition: RileyIds.h:414
ClippingPlaneId() noexcept
Definition: RileyIds.h:429
~RenderOutputId()=default
Definition: RileyIds.h:305
IntegratorId() noexcept
Definition: RileyIds.h:653
bool operator!=(const LightShaderId &rhs) const noexcept
Definition: RileyIds.h:726
LightShaderId() noexcept
Definition: RileyIds.h:717
bool operator!=(const DisplacementId &rhs) const noexcept
Definition: RileyIds.h:630
bool operator>(const LightInstanceId &rhs) const noexcept
Definition: RileyIds.h:702
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:547
bool operator!=(const DisplayId &rhs) const noexcept
Definition: RileyIds.h:854
static DisplayFilterId InvalidId() noexcept
Definition: RileyIds.h:488
~CameraId()=default
bool operator<(const CameraId &rhs) const noexcept
Definition: RileyIds.h:410
static CoordinateSystemId InvalidId() noexcept
Definition: RileyIds.h:776
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:835
bool operator<(const DisplayId &rhs) const noexcept
Definition: RileyIds.h:858
RenderTargetId() noexcept
Definition: RileyIds.h:813
RenderOutputId() noexcept
Definition: RileyIds.h:781
bool operator<(const RenderOutputId &rhs) const noexcept
Definition: RileyIds.h:794
bool operator>(const RenderOutputId &rhs) const noexcept
Definition: RileyIds.h:798
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:483
bool operator==(const LightInstanceId &rhs) const noexcept
Definition: RileyIds.h:690
bool operator<(const IntegratorId &rhs) const noexcept
Definition: RileyIds.h:666
bool operator<(const ClippingPlaneId &rhs) const noexcept
Definition: RileyIds.h:442
Definition: RileyIds.h:225
RenderViewId() noexcept
Definition: RileyIds.h:877
bool operator<(const MaterialId &rhs) const noexcept
Definition: RileyIds.h:602
bool operator>(const CoordinateSystemId &rhs) const noexcept
Definition: RileyIds.h:766
bool operator>(const RenderTargetId &rhs) const noexcept
Definition: RileyIds.h:830
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:579
SampleFilterId() noexcept
Definition: RileyIds.h:493
static LightInstanceId InvalidId() noexcept
Definition: RileyIds.h:712
bool operator>(const IntegratorId &rhs) const noexcept
Definition: RileyIds.h:670
bool operator!=(const IntegratorId &rhs) const noexcept
Definition: RileyIds.h:662
Definition: RileyIds.h:185
bool operator==(const DisplayId &rhs) const noexcept
Definition: RileyIds.h:850
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:675
bool operator>(const SampleFilterId &rhs) const noexcept
Definition: RileyIds.h:510
#define RILEY_NAMESPACE_ENTER
If RILEY_REQUIRE_VERSION_NAME is undefined, symbols from the version namespace are promoted to the to...
Definition: Riley_version.h:81
Definition: RileyIds.h:105
bool operator<(const DisplacementId &rhs) const noexcept
Definition: RileyIds.h:634
bool operator>(const MaterialId &rhs) const noexcept
Definition: RileyIds.h:606
bool operator==(const CameraId &rhs) const noexcept
Definition: RileyIds.h:402
Definition: RileyIds.h:65
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:707
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:515
static RenderOutputId InvalidId() noexcept
Definition: RileyIds.h:808
bool operator>(const DisplayFilterId &rhs) const noexcept
Definition: RileyIds.h:478
bool operator==(const RenderViewId &rhs) const noexcept
Definition: RileyIds.h:882
DisplacementId() noexcept
Definition: RileyIds.h:621
~ClippingPlaneId()=default
bool operator!=(const UserId &rhs) const noexcept
Definition: RileyIds.h:918
DisplayFilterId() noexcept
Definition: RileyIds.h:461
~LightShaderId()=default
bool operator!=(const MaterialId &rhs) const noexcept
Definition: RileyIds.h:598
static UserId DefaultId() noexcept
Definition: RileyIds.h:936
Definition: RileyIds.h:378
static CameraId InvalidId() noexcept
Definition: RileyIds.h:424
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:611
bool operator==(const GeometryInstanceId &rhs) const noexcept
Definition: RileyIds.h:530
bool operator!=(const DisplayFilterId &rhs) const noexcept
Definition: RileyIds.h:470
bool operator!=(const CameraId &rhs) const noexcept
Definition: RileyIds.h:406
bool operator>(const RenderViewId &rhs) const noexcept
Definition: RileyIds.h:894
DisplayId() noexcept
Definition: RileyIds.h:845
Definition: RileyIds.h:285
~GeometryPrototypeId()=default
CoordinateSystemId() noexcept
Definition: RileyIds.h:749
bool operator>(const LightShaderId &rhs) const noexcept
Definition: RileyIds.h:734
bool operator!=(const RenderViewId &rhs) const noexcept
Definition: RileyIds.h:886
MaterialId() noexcept
Definition: RileyIds.h:589
bool operator==(const DisplayFilterId &rhs) const noexcept
Definition: RileyIds.h:466
#define RILEY_NAMESPACE_HEADER_EXIT
Definition: Riley_version.h:91
bool operator<(const CoordinateSystemId &rhs) const noexcept
Definition: RileyIds.h:762
bool operator==(const ClippingPlaneId &rhs) const noexcept
Definition: RileyIds.h:434
~LightInstanceId()=default
GeometryInstanceId() noexcept
Definition: RileyIds.h:525
~DisplayId()=default
bool operator<(const RenderViewId &rhs) const noexcept
Definition: RileyIds.h:890
bool operator==(const UserId &rhs) const noexcept
Definition: RileyIds.h:914
bool operator>(const GeometryPrototypeId &rhs) const noexcept
Definition: RileyIds.h:574
CameraId() noexcept
Definition: RileyIds.h:397
bool operator!=(const LightInstanceId &rhs) const noexcept
Definition: RileyIds.h:694
Definition: RileyIds.h:145
static IntegratorId InvalidId() noexcept
Definition: RileyIds.h:680
static LightShaderId InvalidId() noexcept
Definition: RileyIds.h:744
bool operator!=(const RenderOutputId &rhs) const noexcept
Definition: RileyIds.h:790
Definition: RileyIds.h:125
static GeometryPrototypeId InvalidId() noexcept
Definition: RileyIds.h:584
Definition: RileyIds.h:245
static DisplacementId InvalidId() noexcept
Definition: RileyIds.h:648
Definition: RileyIds.h:325
bool operator!=(const RenderTargetId &rhs) const noexcept
Definition: RileyIds.h:822
static GeometryInstanceId InvalidId() noexcept
Definition: RileyIds.h:552
GeometryPrototypeId() noexcept
Definition: RileyIds.h:557
~CoordinateSystemId()=default
bool operator<(const RenderTargetId &rhs) const noexcept
Definition: RileyIds.h:826
static RenderTargetId InvalidId() noexcept
Definition: RileyIds.h:840
bool operator<(const LightShaderId &rhs) const noexcept
Definition: RileyIds.h:730
bool operator!=(const CoordinateSystemId &rhs) const noexcept
Definition: RileyIds.h:758
~GeometryInstanceId()=default
bool operator==(const SampleFilterId &rhs) const noexcept
Definition: RileyIds.h:498
bool operator<(const UserId &rhs) const noexcept
Definition: RileyIds.h:922
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:867
~UserId()=default
Definition: RileyIds.h:265
~IntegratorId()=default
bool operator==(const RenderTargetId &rhs) const noexcept
Definition: RileyIds.h:818
bool operator==(const GeometryPrototypeId &rhs) const noexcept
Definition: RileyIds.h:562
LightInstanceId() noexcept
Definition: RileyIds.h:685
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:771
bool operator<(const DisplayFilterId &rhs) const noexcept
Definition: RileyIds.h:474
bool operator<(const GeometryPrototypeId &rhs) const noexcept
Definition: RileyIds.h:570
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:739
static ClippingPlaneId InvalidId() noexcept
Definition: RileyIds.h:456
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:899
uint32_t AsUInt32() const noexcept
Definition: RileyIds.h:803