Skip to content

Commit

Permalink
Deploy GH
Browse files Browse the repository at this point in the history
[email protected] committed Dec 19, 2024
1 parent e9007a3 commit ab22d9e
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/latest/_ogre20_changes.html
Original file line number Diff line number Diff line change
@@ -169,7 +169,7 @@ <h1><a class="anchor" id="NamesAreNowOptional"></a>
<div class="line"> <span class="comment">/* ... */</span></div>
<div class="line"> <span class="keywordtype">bool</span> * <a class="code" href="_ogre_platform_8h.html#a6decd303d90f9cd75d6bb79d51ea2154">RESTRICT_ALIAS</a> mInheritOrientation;</div>
<div class="line">};</div>
<div class="ttc" id="a_ogre_platform_8h_html_a6decd303d90f9cd75d6bb79d51ea2154"><div class="ttname"><a href="_ogre_platform_8h.html#a6decd303d90f9cd75d6bb79d51ea2154">RESTRICT_ALIAS</a></div><div class="ttdeci">#define RESTRICT_ALIAS</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:571</div></div>
<div class="ttc" id="a_ogre_platform_8h_html_a6decd303d90f9cd75d6bb79d51ea2154"><div class="ttname"><a href="_ogre_platform_8h.html#a6decd303d90f9cd75d6bb79d51ea2154">RESTRICT_ALIAS</a></div><div class="ttdeci">#define RESTRICT_ALIAS</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:572</div></div>
</div><!-- fragment --><p>When <code>ARRAY_PACKED_REALS</code> = 4 (i.e. SSE builds), though not strictly correct, we could say <code>mParents</code> is declared as:</p>
<div class="fragment"><div class="line"><span class="keyword">struct </span>Transform</div>
<div class="line">{</div>
4 changes: 2 additions & 2 deletions api/latest/_ogre22_changes.html
Original file line number Diff line number Diff line change
@@ -425,8 +425,8 @@ <h3><a class="anchor" id="autotoc_md30"></a>
<div class="ttc" id="aclass_ogre_1_1_texture_gpu_html_add1ea0e81537e4b98ad11f6cc06f14cd"><div class="ttname"><a href="class_ogre_1_1_texture_gpu.html#add1ea0e81537e4b98ad11f6cc06f14cd">Ogre::TextureGpu::getWidth</a></div><div class="ttdeci">uint32 getWidth() const</div></div>
<div class="ttc" id="agroup___memory_html_gga830fab51be174d6f2849857cb1abb36aa04bad2e7f64cc2b6f4cda9f56b59e5b4"><div class="ttname"><a href="group___memory.html#gga830fab51be174d6f2849857cb1abb36aa04bad2e7f64cc2b6f4cda9f56b59e5b4">Ogre::MEMCATEGORY_RESOURCE</a></div><div class="ttdeci">@ MEMCATEGORY_RESOURCE</div><div class="ttdoc">Other resources.</div><div class="ttdef"><b>Definition:</b> OgreMemoryAllocatorConfig.h:174</div></div>
<div class="ttc" id="anamespace_ogre_1_1_gpu_residency_html_a2dee9b512fd45f8d010e8e18e25ebd98a268f91accb452d1707dd83b5aeb72aa2"><div class="ttname"><a href="namespace_ogre_1_1_gpu_residency.html#a2dee9b512fd45f8d010e8e18e25ebd98a268f91accb452d1707dd83b5aeb72aa2">Ogre::GpuResidency::Resident</a></div><div class="ttdeci">@ Resident</div><div class="ttdoc">VRAM and other GPU resources have been allocated for this resource.</div><div class="ttdef"><b>Definition:</b> OgreGpuResource.h:66</div></div>
<div class="ttc" id="anamespace_ogre_html_a5a7c15d68e8c7d585c410bc5a93682f4"><div class="ttname"><a href="namespace_ogre.html#a5a7c15d68e8c7d585c410bc5a93682f4">Ogre::uint32</a></div><div class="ttdeci">::uint32_t uint32</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:549</div></div>
<div class="ttc" id="anamespace_ogre_html_a9212e2b4c7d29d6fae3a004ac7ad137e"><div class="ttname"><a href="namespace_ogre.html#a9212e2b4c7d29d6fae3a004ac7ad137e">Ogre::uint8</a></div><div class="ttdeci">::uint8_t uint8</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:547</div></div>
<div class="ttc" id="anamespace_ogre_html_a5a7c15d68e8c7d585c410bc5a93682f4"><div class="ttname"><a href="namespace_ogre.html#a5a7c15d68e8c7d585c410bc5a93682f4">Ogre::uint32</a></div><div class="ttdeci">::uint32_t uint32</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:550</div></div>
<div class="ttc" id="anamespace_ogre_html_a9212e2b4c7d29d6fae3a004ac7ad137e"><div class="ttname"><a href="namespace_ogre.html#a9212e2b4c7d29d6fae3a004ac7ad137e">Ogre::uint8</a></div><div class="ttdeci">::uint8_t uint8</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:548</div></div>
</div><!-- fragment --><p>You don't necessarily need to have one StagingTexture per TextureGpu for uploads. For example you could have four 1024x1024 TextureGpus and request one StagingTexture of 2048x2048 or one of 1024x1024x4; map it four times and perform four uploads. In pseudo code:</p>
<div class="fragment"><div class="line">StagingTexture *stagingTexture = textureManager-&gt;getStagingTexture( 2048u, 2048u,</div>
<div class="line"> 1u, 1u,</div>
2 changes: 1 addition & 1 deletion api/latest/_root_layouts.html
Original file line number Diff line number Diff line change
@@ -299,7 +299,7 @@ <h1><a class="anchor" id="RootLayoutsDeclaringInShaders"></a>
<div class="ttc" id="anamespace_ogre_1_1_desc_binding_types_html_af97aae360aa16970ee0873372c96c6bea4f76de6e19838054f4528ed58adfc0ab"><div class="ttname"><a href="namespace_ogre_1_1_desc_binding_types.html#af97aae360aa16970ee0873372c96c6bea4f76de6e19838054f4528ed58adfc0ab">Ogre::DescBindingTypes::ReadOnlyBuffer</a></div><div class="ttdeci">@ ReadOnlyBuffer</div><div class="ttdef"><b>Definition:</b> OgreRootLayout.h:82</div></div>
<div class="ttc" id="anamespace_ogre_1_1_desc_binding_types_html_af97aae360aa16970ee0873372c96c6beadd0d59b5d7779947d9218f971e7b224c"><div class="ttname"><a href="namespace_ogre_1_1_desc_binding_types.html#af97aae360aa16970ee0873372c96c6beadd0d59b5d7779947d9218f971e7b224c">Ogre::DescBindingTypes::ConstBuffer</a></div><div class="ttdeci">@ ConstBuffer</div><div class="ttdef"><b>Definition:</b> OgreRootLayout.h:81</div></div>
<div class="ttc" id="anamespace_ogre_1_1_resource_layout_html_a7ce11be54143fb01a34d6b7529ba3dc7a01ccc277359df8c0a2cfdbd943341cf0"><div class="ttname"><a href="namespace_ogre_1_1_resource_layout.html#a7ce11be54143fb01a34d6b7529ba3dc7a01ccc277359df8c0a2cfdbd943341cf0">Ogre::ResourceLayout::Texture</a></div><div class="ttdeci">@ Texture</div><div class="ttdef"><b>Definition:</b> OgreResourceTransition.h:52</div></div>
<div class="ttc" id="anamespace_ogre_html_a64f3c3e34647277a00b67ae0dfa1a528"><div class="ttname"><a href="namespace_ogre.html#a64f3c3e34647277a00b67ae0dfa1a528">Ogre::uint16</a></div><div class="ttdeci">::uint16_t uint16</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:548</div></div>
<div class="ttc" id="anamespace_ogre_html_a64f3c3e34647277a00b67ae0dfa1a528"><div class="ttname"><a href="namespace_ogre.html#a64f3c3e34647277a00b67ae0dfa1a528">Ogre::uint16</a></div><div class="ttdeci">::uint16_t uint16</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:549</div></div>
</div><!-- fragment --><h1><a class="anchor" id="RootLayoutsBakedSets"></a>
Baked sets</h1>
<p>Non-baked sets are meant to behave very similarly to table models in D3D11 and OpenGL.</p>
4 changes: 2 additions & 2 deletions api/latest/hlms.html
Original file line number Diff line number Diff line change
@@ -701,7 +701,7 @@ <h2><a class="anchor" id="HlmsTextureManagerAutomaticBatching"></a>
<div class="line"> <a class="code" href="namespace_ogre.html#a64f3c3e34647277a00b67ae0dfa1a528">uint16</a> yIdx;</div>
<div class="line"> <a class="code" href="namespace_ogre.html#a64f3c3e34647277a00b67ae0dfa1a528">uint16</a> divisor;</div>
<div class="line">};</div>
<div class="ttc" id="anamespace_ogre_html_a64f3c3e34647277a00b67ae0dfa1a528"><div class="ttname"><a href="namespace_ogre.html#a64f3c3e34647277a00b67ae0dfa1a528">Ogre::uint16</a></div><div class="ttdeci">::uint16_t uint16</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:548</div></div>
<div class="ttc" id="anamespace_ogre_html_a64f3c3e34647277a00b67ae0dfa1a528"><div class="ttname"><a href="namespace_ogre.html#a64f3c3e34647277a00b67ae0dfa1a528">Ogre::uint16</a></div><div class="ttdeci">::uint16_t uint16</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:549</div></div>
</div><!-- fragment --><p>The texture pointer is the actual atlas/array texture.</p>
<p>On Desktop, only xIdx is used, which indicates which slice in the array contains our texture.</p>
<p>In order to sample in the pixel shader, one needs to perform:</p>
@@ -767,7 +767,7 @@ <h3><a class="anchor" id="HlmsTextureManagerAutomaticBatchingAutoParams"></a>
<div class="line"> <span class="keywordtype">float</span> packMaxRatio;</div>
<div class="line"> ThresholdVec textureArraysTresholds;</div>
<div class="line">};</div>
<div class="ttc" id="anamespace_ogre_html_a5a7c15d68e8c7d585c410bc5a93682f4"><div class="ttname"><a href="namespace_ogre.html#a5a7c15d68e8c7d585c410bc5a93682f4">Ogre::uint32</a></div><div class="ttdeci">::uint32_t uint32</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:549</div></div>
<div class="ttc" id="anamespace_ogre_html_a5a7c15d68e8c7d585c410bc5a93682f4"><div class="ttname"><a href="namespace_ogre.html#a5a7c15d68e8c7d585c410bc5a93682f4">Ogre::uint32</a></div><div class="ttdeci">::uint32_t uint32</div><div class="ttdef"><b>Definition:</b> OgrePlatform.h:550</div></div>
</div><!-- fragment --><p>The comments and the code itself should be self-explanatory. The setting <code>pixelFormat</code> allows to force a conversion to a particular format. When left as <code>PF_UNKNOWN</code>, the texture's original format will be used (except for RGB/BGR/ARGB/BGRA/etc variations).</p>
<p>The setting <code>maxTexturesPerArray</code> controls the maximum number of textures that can be packed together. Note the actual number may be lower either due to hardware limitations (i.e. you can't make an uv atlas with 16 512x512 textures on a GPU that has a maximum texture resolution of 1024x1024) or due to the <code>textureArraysTresholds</code> parameter (which only applies on Desktop).</p>
<p>The parameters <code>packNonPow2</code> and <code>packMaxRatio</code> operate under the assumption that such textures are rare and therefore should not be packed to prevent memory waste.</p>

0 comments on commit ab22d9e

Please sign in to comment.