| 757 | } |
| 758 | |
| 759 | static dmGraphics::HTexture MakeDummyTexture(dmGraphics::HContext context, uint32_t depth = 1) |
| 760 | { |
| 761 | dmGraphics::TextureCreationParams creation_params; |
| 762 | creation_params.m_Type = depth > 1 ? dmGraphics::TEXTURE_TYPE_2D_ARRAY : dmGraphics::TEXTURE_TYPE_2D; |
| 763 | creation_params.m_Width = 2; |
| 764 | creation_params.m_Height = 2; |
| 765 | creation_params.m_OriginalWidth = 2; |
| 766 | creation_params.m_OriginalHeight = 2; |
| 767 | creation_params.m_Depth = depth; |
| 768 | |
| 769 | uint8_t tex_data[2 * 2]; |
| 770 | dmGraphics::TextureParams params; |
| 771 | params.m_DataSize = sizeof(tex_data); |
| 772 | params.m_Data = tex_data; |
| 773 | params.m_Width = creation_params.m_Width; |
| 774 | params.m_Height = creation_params.m_Height; |
| 775 | params.m_Format = dmGraphics::TEXTURE_FORMAT_LUMINANCE; |
| 776 | params.m_MinFilter = dmGraphics::TEXTURE_FILTER_DEFAULT; |
| 777 | params.m_MagFilter = dmGraphics::TEXTURE_FILTER_DEFAULT; |
| 778 | |
| 779 | dmGraphics::HTexture texture = dmGraphics::NewTexture(context, creation_params); |
| 780 | dmGraphics::SetTexture(context, texture, params); |
| 781 | return texture; |
| 782 | } |
| 783 | |
| 784 | static inline int CountSamplersInTextureBindTable(dmRender::HRenderContext context, dmhash_t sampler_name) |
| 785 | { |
no test coverage detected