| 398 | { |
| 399 | protected: |
| 400 | void SetUp() override |
| 401 | { |
| 402 | const CompileInfo& info = GetParam(); |
| 403 | uint8_t* image = stbi_load(info.m_Path, &m_Width, &m_Height, 0, 0); |
| 404 | ASSERT_TRUE(image != 0); |
| 405 | |
| 406 | m_Image = dmTexc::CreateImage(info.m_Path, m_Width, m_Height, info.m_InputFormat, info.m_ColorSpace, m_Width*m_Height*4, image); |
| 407 | |
| 408 | stbi_image_free(image); |
| 409 | } |
| 410 | |
| 411 | void TearDown() override |
| 412 | { |
nothing calls this directly
no test coverage detected