MCPcopy Create free account
hub / github.com/carbonengine/trinity / TEST_F

Function TEST_F

trinityal/tests/SamplerState.cpp:14–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14TEST_F( SamplerState, CanCreateSamplerState )
15{
16 ENSURE_GPU_OR_SKIP
17 Tr2SamplerStateAL ss;
18 float borderColor[] = { 0.f, 0.f, 0.f, 1.f };
19 Tr2SamplerDescription desc(
20 TF_ANISOTROPIC,
21 TF_LINEAR,
22 TF_POINT,
23 false,
24 TA_WRAP,
25 TA_CLAMP,
26 TA_BORDER,
27 0.5f,
28 4,
29 CMP_ALWAYS,
30 borderColor,
31 0.1f,
32 3.2f );
33
34 ASSERT_HRESULT_SUCCEEDED( ss.Create( desc, *renderContext ) );
35 EXPECT_TRUE( ss.IsValid() );
36}
37
38TEST_F( SamplerState, SamplerStateEqualsItself )
39{

Callers

nothing calls this directly

Calls 3

CreateMethod · 0.45
IsValidMethod · 0.45
GetMemoryClassMethod · 0.45

Tested by

no test coverage detected