[GPU] Offset and clamp tessellation patch index (#2008, thanks @deaklajos)

This commit is contained in:
Triang3l
2022-04-14 13:04:34 +03:00
parent fea430f1f9
commit 38aca269e1
2 changed files with 47 additions and 28 deletions

View File

@@ -756,6 +756,13 @@ class DxbcShaderTranslator : public ShaderTranslator {
uint32_t factor_component);
// Writing the prologue.
// Applies the offset to vertex or tessellation patch indices in the source
// components, restricts them to the minimum and the maximum index values, and
// converts them to floating-point. The destination may be the same as the
// source.
void RemapAndConvertVertexIndices(uint32_t dest_temp,
uint32_t dest_temp_components,
const dxbc::Src& src);
void StartVertexShader_LoadVertexIndex();
void StartVertexOrDomainShader();
void StartDomainShader();