|
@@ -1026,7 +1026,7 @@ class WebGPUBackend extends Backend {
|
|
|
data.sampleCount !== sampleCount || data.colorSpace !== colorSpace ||
|
|
data.sampleCount !== sampleCount || data.colorSpace !== colorSpace ||
|
|
|
data.colorFormat !== colorFormat || data.depthStencilFormat !== depthStencilFormat ||
|
|
data.colorFormat !== colorFormat || data.depthStencilFormat !== depthStencilFormat ||
|
|
|
data.primitiveTopology !== primitiveTopology ||
|
|
data.primitiveTopology !== primitiveTopology ||
|
|
|
- data.clippingContextVersion !== renderObject.clippingContextVersion
|
|
|
|
|
|
|
+ data.clippingContextCacheKey !== renderObject.clippingContext.cacheKey
|
|
|
) {
|
|
) {
|
|
|
|
|
|
|
|
data.material = material; data.materialVersion = material.version;
|
|
data.material = material; data.materialVersion = material.version;
|
|
@@ -1044,7 +1044,7 @@ class WebGPUBackend extends Backend {
|
|
|
data.colorFormat = colorFormat;
|
|
data.colorFormat = colorFormat;
|
|
|
data.depthStencilFormat = depthStencilFormat;
|
|
data.depthStencilFormat = depthStencilFormat;
|
|
|
data.primitiveTopology = primitiveTopology;
|
|
data.primitiveTopology = primitiveTopology;
|
|
|
- data.clippingContextVersion = renderObject.clippingContextVersion;
|
|
|
|
|
|
|
+ data.clippingContextCacheKey = renderObject.clippingContext.cacheKey;
|
|
|
|
|
|
|
|
needsUpdate = true;
|
|
needsUpdate = true;
|
|
|
|
|
|
|
@@ -1074,7 +1074,7 @@ class WebGPUBackend extends Backend {
|
|
|
utils.getSampleCountRenderContext( renderContext ),
|
|
utils.getSampleCountRenderContext( renderContext ),
|
|
|
utils.getCurrentColorSpace( renderContext ), utils.getCurrentColorFormat( renderContext ), utils.getCurrentDepthStencilFormat( renderContext ),
|
|
utils.getCurrentColorSpace( renderContext ), utils.getCurrentColorFormat( renderContext ), utils.getCurrentDepthStencilFormat( renderContext ),
|
|
|
utils.getPrimitiveTopology( object, material ),
|
|
utils.getPrimitiveTopology( object, material ),
|
|
|
- renderObject.clippingContextVersion
|
|
|
|
|
|
|
+ renderObject.clippingContext.cacheKey
|
|
|
].join();
|
|
].join();
|
|
|
|
|
|
|
|
}
|
|
}
|