@@ -377,7 +377,7 @@ Examples of things we've done with nvdiffrast
...
@@ -377,7 +377,7 @@ Examples of things we've done with nvdiffrast
<h3id="linux">Linux</h3>
<h3id="linux">Linux</h3>
<p>We recommend running nvdiffrast on <ahref="https://www.docker.com/">Docker</a>. To build a Docker image with nvdiffrast and PyTorch 1.6 installed, run:</p>
<p>We recommend running nvdiffrast on <ahref="https://www.docker.com/">Docker</a>. To build a Docker image with nvdiffrast and PyTorch 1.6 installed, run:</p>
<p>We recommend using Ubuntu, as some Linux distributions might not have all the required packages available — at least CentOS is reportedly problematic.</p>
<p>We recommend using Ubuntu, as some Linux distributions might not have all the required packages available. Installation on CentOS is reportedly problematic, but success has been claimed <ahref="https://github.com/NVlabs/nvdiffrast/issues/48#issuecomment-1449261808">here</a>.</p>
<p>To try out some of the provided code examples, run:</p>
<p>To try out some of the provided code examples, run:</p>
<p>Alternatively, if you have all the dependencies taken care of (consult the included Dockerfile for reference), you can install nvdiffrast in your local Python site-packages by running</p>
<p>Alternatively, if you have all the dependencies taken care of (consult the included Dockerfile for reference), you can install nvdiffrast in your local Python site-packages by running</p>
...
@@ -1036,7 +1036,7 @@ severity will be silent.</td></tr></table></div>
...
@@ -1036,7 +1036,7 @@ severity will be silent.</td></tr></table></div>
<p>This work is made available under the <ahref="https://github.com/NVlabs/nvdiffrast/blob/main/LICENSE.txt">Nvidia Source Code License</a>.</p>
<p>This work is made available under the <ahref="https://github.com/NVlabs/nvdiffrast/blob/main/LICENSE.txt">Nvidia Source Code License</a>.</p>
<p>For business inquiries, please visit our website and submit the form: <ahref="https://www.nvidia.com/en-us/research/inquiries/">NVIDIA Research Licensing</a></p>
<p>For business inquiries, please visit our website and submit the form: <ahref="https://www.nvidia.com/en-us/research/inquiries/">NVIDIA Research Licensing</a></p>
<p>We do not currently accept outside contributions in the form of pull requests.</p>
<p>We do not currently accept outside contributions in the form of pull requests.</p>
voidsetViewportSize(intwidth,intheight,intnumImages);// Width and height must be multiples of tile size (8x8).
voidsetViewportSize(intwidth,intheight,intnumImages);// Width and height must be multiples of tile size (8x8).
voidsetRenderModeFlags(unsignedintrenderModeFlags);// Affects all subsequent calls to drawTriangles(). Defaults to zero.
voidsetRenderModeFlags(unsignedintrenderModeFlags);// Affects all subsequent calls to drawTriangles(). Defaults to zero.
voiddeferredClear(unsignedintclearColor);// Clears color and depth buffers during next call to drawTriangles().
voiddeferredClear(unsignedintclearColor);// Clears color and depth buffers during next call to drawTriangles().
voidsetVertexBuffer(void*vertices,intnumVertices);// GPU pointer managed by caller. Vertex positions in clip space as float4 (x, y, z, w).
voidsetVertexBuffer(void*vertices,intnumVertices);// GPU pointer managed by caller. Vertex positions in clip space as float4 (x, y, z, w).
voidsetIndexBuffer(void*indices,intnumTriangles);// GPU pointer managed by caller. Triangle index+color quadruplets as uint4 (idx0, idx1, idx2, color).
voidsetIndexBuffer(void*indices,intnumTriangles);// GPU pointer managed by caller. Triangle index+color quadruplets as uint4 (idx0, idx1, idx2, color).
booldrawTriangles(constint*ranges,cudaStream_tstream);// Ranges (offsets and counts) as #triangles entries, not as bytes. If NULL, draw all triangles. Returns false in case of internal overflow.
booldrawTriangles(constint*ranges,boolpeel,cudaStream_tstream);// Ranges (offsets and counts) as #triangles entries, not as bytes. If NULL, draw all triangles. Returns false in case of internal overflow.
void*getColorBuffer(void);// GPU pointer managed by CudaRaster.
void*getColorBuffer(void);// GPU pointer managed by CudaRaster.
void*getDepthBuffer(void);// GPU pointer managed by CudaRaster.
void*getDepthBuffer(void);// GPU pointer managed by CudaRaster.
voidswapDepthAndPeel(void);// Swap depth and peeling buffers.
voidswapDepthAndPeel(void);// Swap depth and peeling buffers.