1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([["15062"],{93590:function(e,n,s){s.r(n),s.d(n,{metadata:()=>t,default:()=>u,frontMatter:()=>c,contentTitle:()=>o,toc:()=>a,assets:()=>d});var t=JSON.parse('{"id":"api/core/functions/setUseCPURendering","title":"Function: ~~setUseCPURendering()~~","description":"setUseCPURendering(status, updateViewports): void","source":"@site/docs/api/core/functions/setUseCPURendering.md","sourceDirName":"api/core/functions","slug":"/api/core/functions/setUseCPURendering","permalink":"/docs/api/core/functions/setUseCPURendering","draft":false,"unlisted":false,"editUrl":"https://github.com/cornerstonejs/cornerstone3D/edit/main/packages/docs/docs/api/core/functions/setUseCPURendering.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar2","previous":{"title":"Function: setRenderBackend()","permalink":"/docs/api/core/functions/setRenderBackend"},"next":{"title":"Function: setVolumesForViewports()","permalink":"/docs/api/core/functions/setVolumesForViewports"}}'),r=s(31085),i=s(92600);let c={},o="Function: setUseCPURendering()",d={},a=[{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2},{value:"Deprecated",id:"deprecated",level:2},{value:"Defined in",id:"defined-in",level:2}];function l(e){let n={a:"a",blockquote:"blockquote",code:"code",del:"del",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsxs)(n.h1,{id:"function-setusecpurendering",children:["Function: ",(0,r.jsx)(n.del,{children:"setUseCPURendering()"})]})}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"setUseCPURendering"}),"(",(0,r.jsx)(n.code,{children:"status"}),", ",(0,r.jsx)(n.code,{children:"updateViewports"}),"): ",(0,r.jsx)(n.code,{children:"void"})]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Forces CPU rendering for legacy viewports. The 'auto' render backend also\nhonors this flag, so calling it affects GenericViewport-based viewports\nunless they are pinned to 'gpu'/'cpu' via renderBackend."}),"\n",(0,r.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"status"}),": ",(0,r.jsx)(n.code,{children:"boolean"})]}),"\n",(0,r.jsx)(n.p,{children:"boolean"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"updateViewports"}),": ",(0,r.jsx)(n.code,{children:"boolean"})," = ",(0,r.jsx)(n.code,{children:"true"})]}),"\n",(0,r.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"void"})}),"\n",(0,r.jsx)(n.h2,{id:"deprecated",children:"Deprecated"}),"\n",(0,r.jsxs)(n.p,{children:["Use ",(0,r.jsx)(n.code,{children:"setRenderBackend('cpu' | 'auto')"})," instead."]}),"\n",(0,r.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/cornerstonejs/cornerstone3D/blob/38fdfaa1d44940275c40f14c989044e306cc21f6/packages/core/src/init.ts#L305",children:"packages/core/src/init.ts:305"})})]})}function u(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},92600:function(e,n,s){s.d(n,{R:()=>c,x:()=>o});var t=s(14041);let r={},i=t.createContext(r);function c(e){let n=t.useContext(i);return t.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.