Skip to content

Commit

Permalink
improve pipeline cache logic
Browse files Browse the repository at this point in the history
  • Loading branch information
iaomw committed Sep 29, 2024
1 parent c902e95 commit b20b398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenovis/xinxinoptix/OptiXStuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ inline uint CachedPrimitiveTypeFlags = UINT_MAX;

inline bool configPipeline(OptixPrimitiveTypeFlags usesPrimitiveTypeFlags) {

if (usesPrimitiveTypeFlags == CachedPrimitiveTypeFlags) { return false; }
if (CachedPrimitiveTypeFlags != UINT_MAX && (usesPrimitiveTypeFlags&CachedPrimitiveTypeFlags == usesPrimitiveTypeFlags)) { return false; }
CachedPrimitiveTypeFlags = usesPrimitiveTypeFlags;

pipeline_compile_options = {};
Expand Down

0 comments on commit b20b398

Please sign in to comment.