Make WireTests not rely on SamplerBuilder
The sampler builder will be removed as the first builder being converted to a descriptor. Use CommandBufferBuilder instead as it is not expected to change soon.
This commit is contained in:
parent
e8c8f020fb
commit
2ee315ca64
|
@ -184,14 +184,14 @@ TEST_F(WireTests, ReleaseCalledOnRefCount0) {
|
||||||
|
|
||||||
// Test that the wire is able to send numerical values
|
// Test that the wire is able to send numerical values
|
||||||
TEST_F(WireTests, ValueArgument) {
|
TEST_F(WireTests, ValueArgument) {
|
||||||
nxtSamplerBuilder builder = nxtDeviceCreateSamplerBuilder(device);
|
nxtCommandBufferBuilder builder = nxtDeviceCreateCommandBufferBuilder(device);
|
||||||
nxtSamplerBuilderSetFilterMode(builder, NXT_FILTER_MODE_LINEAR, NXT_FILTER_MODE_LINEAR, NXT_FILTER_MODE_NEAREST);
|
nxtCommandBufferBuilderDispatch(builder, 1, 2, 3);
|
||||||
|
|
||||||
nxtSamplerBuilder apiBuilder = api.GetNewSamplerBuilder();
|
nxtCommandBufferBuilder apiBuilder = api.GetNewCommandBufferBuilder();
|
||||||
EXPECT_CALL(api, DeviceCreateSamplerBuilder(apiDevice))
|
EXPECT_CALL(api, DeviceCreateCommandBufferBuilder(apiDevice))
|
||||||
.WillOnce(Return(apiBuilder));
|
.WillOnce(Return(apiBuilder));
|
||||||
|
|
||||||
EXPECT_CALL(api, SamplerBuilderSetFilterMode(apiBuilder, NXT_FILTER_MODE_LINEAR, NXT_FILTER_MODE_LINEAR, NXT_FILTER_MODE_NEAREST))
|
EXPECT_CALL(api, CommandBufferBuilderDispatch(apiBuilder, 1, 2, 3))
|
||||||
.Times(1);
|
.Times(1);
|
||||||
|
|
||||||
FlushClient();
|
FlushClient();
|
||||||
|
|
Loading…
Reference in New Issue