MCPcopy Create free account
hub / github.com/RenderKit/embree / Ref

Class Ref

kernels/subdiv/patch.h:76–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 };
75
76 struct Ref
77 {
78 __forceinline Ref(void* p = nullptr)
79 : ptr((size_t)p) {}
80
81 __forceinline operator bool() const { return ptr != 0; }
82 __forceinline operator size_t() const { return ptr; }
83
84 __forceinline Ref (Type ty, void* in)
85 : ptr(((size_t)in)+ty) { assert((((size_t)in) & 0xF) == 0); }
86
87 __forceinline Type type () const { return (Type)(ptr & 0xF); }
88 __forceinline void* object() const { return (void*) (ptr & ~0xF); }
89
90 size_t ptr;
91 };
92
93 struct EvalPatch
94 {

Callers 7

createMethod · 0.70
createMethod · 0.70
createMethod · 0.70
createMethod · 0.70
createMethod · 0.70
createMethod · 0.70
createMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected