| 65 | } |
| 66 | |
| 67 | static size_t makeHash( SamplerDesc const & samplerDesc ) |
| 68 | { |
| 69 | auto result = std::hash< FilterMode >{}( samplerDesc.magFilter ); |
| 70 | result = hashCombine( result, samplerDesc.minFilter ); |
| 71 | result = hashCombine( result, samplerDesc.mipmapMode ); |
| 72 | result = hashCombine( result, samplerDesc.addressModeU ); |
| 73 | result = hashCombine( result, samplerDesc.addressModeV ); |
| 74 | result = hashCombine( result, samplerDesc.addressModeW ); |
| 75 | result = hashCombine( result, samplerDesc.mipLodBias ); |
| 76 | result = hashCombine( result, samplerDesc.minLod ); |
| 77 | result = hashCombine( result, samplerDesc.maxLod ); |
| 78 | return result; |
| 79 | } |
| 80 | |
| 81 | static size_t makeHash( bool texCoords |
| 82 | , Texcoord const & config ) |
no test coverage detected